PolymerElements / iron-input

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

add bindValueAsNumber property #58

Closed valdrinkoshi closed 8 years ago

valdrinkoshi commented 8 years ago

Allows binding on valueAsNumber; it will be updated only for input.type "number" or "date" http://www.w3.org/TR/2011/WD-html5-20110405/common-input-element-attributes.html#common-input-element-apis

This property is needed to fix https://github.com/PolymerElements/paper-input/issues/170

valdrinkoshi commented 8 years ago

@notwaldorf @cdata FYI, please review

valdrinkoshi commented 8 years ago

@cdata @notwaldorf, I moved bindValueAsDate in a separate PR. This one is focused on valueAsNumber and is ready for review!

notwaldorf commented 8 years ago

As discussed offline, I think we're going to sit on this for a while before merging.

notwaldorf commented 8 years ago

Going to close this PR for now, until we find a better approach.