googlearchive / TemplateBinding

TemplateBinding Prolyfill
290 stars 61 forks source link

The data bound to checked is not in sync when the change event fires on an checkbox input #67

Closed sorvell closed 11 years ago

sorvell commented 11 years ago

Data bound to the checked property of an input is not up to date when the change event fires. It looks like this is because the click event is used to track changes to checkboxes.

It seems reasonable to expect that bound data is up to date when an event that changes it fires, and this is indeed the case for input.value and the input event.

Could this be addressed by changing the update code to use the change event instead of click?

rafaelw commented 11 years ago

Fixed in https://github.com/Polymer/mdv/commit/2c675cab75aea2ef3d1b981a616469587b9210fe