soulim / ember-cli-bootstrap-datepicker

Datepicker component for Ember CLI
http://sul.im/ember-cli-bootstrap-datepicker
MIT License
68 stars 57 forks source link

Reset date value when input field is cleared. #35

Closed octronic closed 9 years ago

octronic commented 9 years ago

Listen to the input event and check if the input field is cleared. If yes, set the value to null.

I'm not sure if this is a good and feasible solution, but it fixes #33 for me. Also I'm not very happy about the test since I have to trigger the input event manually to reset the date. But as far as I know there is currently no other way in Ember to test events on input fields (even the fillIn helper doesn't trigger any events)

soulim commented 9 years ago

HUGE thank you @octronic! :+1: