Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit c6d0f1d

Browse files
committed
Fix password box in core-input demo
Previously it was bound to the first input box
1 parent 4ef9662 commit c6d0f1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

demo.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@
6161

6262
<section horizontal start layout>
6363
<aside>This is an example of a single-line password input. See console for committed values.</aside>
64-
<core-input id="single" type="password" placeholder="Enter password..."></core-input>
64+
<core-input id="password" type="password" placeholder="Enter password..."></core-input>
6565
<script>
66-
var single = document.getElementById('single');
67-
single.addEventListener('change', function() {
68-
console.log('single: value committed: ', single.value);
66+
var password = document.getElementById('password');
67+
password.addEventListener('change', function() {
68+
console.log('password: value committed: ', password.value);
6969
});
7070
</script>
7171
</section>

0 commit comments

Comments
 (0)