fooloomanzoo / datetime-picker

A minimal picker for date and time for Polymer, that can use the native input
MIT License
78 stars 18 forks source link

Feature request: fire event on value reset #56

Closed witoldlitwin closed 6 years ago

witoldlitwin commented 6 years ago

Hi! Could you add another event which would be fired when a user clicks on the small x reset button next to current field value? It would be useful for some validation scenarios we're working on.

fooloomanzoo commented 6 years ago

If an user clicks the reset button, the value will be undefined. If the input has an required-attribute, the property invalid will be set. Have you first try to work with those kind of changes?

witoldlitwin commented 6 years ago

Observer for the invalid property did the trick. Thanks!