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 #7 from RamCohen/patch-1
Browse files Browse the repository at this point in the history
Update core-input.html
  • Loading branch information
Yvonne Yip committed Jul 3, 2014
2 parents 688809e + 6fabe01 commit fbda98e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@
@param {Object} detail
@param {string} value The text input's inputValue.
-->

<!--
Fired when the inputValue of this text input changes and passes validation.
@event input-valid
@param {Object} detail
@param {string} value The text input's inputValue.
-->
<link href="../polymer/polymer.html" rel="import">

<polymer-element name="core-input">
Expand Down Expand Up @@ -218,6 +226,8 @@
this.classList.toggle('invalid', this.invalid);
if (this.invalid) {
this.fire('input-invalid', {value: this.inputValue});
} else {
this.fire('input-valid', {value: this.inputValue});
}
},

Expand Down

0 comments on commit fbda98e

Please sign in to comment.