PolymerElements / iron-input

An input with data binding
https://webcomponents.org/element/PolymerElements/iron-input
33 stars 45 forks source link

call checkValidity() rather than checking .valid #70

Closed jab closed 8 years ago

jab commented 8 years ago

edit from @notwaldorf: From https://github.com/PolymerElements/paper-input/pull/296. Allows you to listen to the invalid event from the nested <input>, which is only triggered if checkValidity is called. Also, this makes sense since paper-input-container's _handleValueAndAutoValidate() also calls checkValidity, so there's no real reason why this shouldn't also.