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)
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)