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

Commit

Permalink
Fix password box in core-input demo
Browse files Browse the repository at this point in the history
Previously it was bound to the first input box
  • Loading branch information
jakemac53 committed Jul 15, 2014
1 parent 4ef9662 commit c6d0f1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@

<section horizontal start layout>
<aside>This is an example of a single-line password input. See console for committed values.</aside>
<core-input id="single" type="password" placeholder="Enter password..."></core-input>
<core-input id="password" type="password" placeholder="Enter password..."></core-input>
<script>
var single = document.getElementById('single');
single.addEventListener('change', function() {
console.log('single: value committed: ', single.value);
var password = document.getElementById('password');
password.addEventListener('change', function() {
console.log('password: value committed: ', password.value);
});
</script>
</section>
Expand Down

0 comments on commit c6d0f1d

Please sign in to comment.