selectTime does not fire when selecting same time if using useSelect #427

Closed
dlsso opened this Issue Aug 31, 2015 · 1 comment

Projects

None yet

2 participants

@dlsso
dlsso commented Aug 31, 2015

Normally selectTime fires even if you select the time that was previously selected. If using useSelect it only fires on change. I assume this is because it is difficult to detect this event on a select box (see http://stackoverflow.com/questions/647282/is-there-an-onselect-event-or-equivalent-for-html-select/12404521#comment16598702_7858323) but it would be really nice to have consistent behavior there or at least note it in the documentation.

Example:
http://jsfiddle.net/jLfv77ox/1/

Update:
I also noticed that when using useSelect hideTimepicker seems to fire on blur instead of on hide.

@jonthornton
Owner

The two are related. Like you pointed out, it's difficult to detect an onSelect equivalent for the native select element. In order to reliably fire the 'hideTimepicker' event it has to be attached to blur.

I'll add a note to the documentation. Thanks for asking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment