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

Commit

Permalink
Merge pull request #17 from jakemac53/patch-1
Browse files Browse the repository at this point in the history
Fix password box in core-input demo
  • Loading branch information
Yvonne Yip committed Jul 16, 2014
2 parents 4ef9662 + c6d0f1d commit 7b3619f
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 7b3619f

Please sign in to comment.