mugifly / jquery-simple-datetimepicker

Date & time picker for jQuery, It's simple & clean.
http://mugifly.github.com/jquery-simple-datetimepicker
Other
259 stars 181 forks source link

Picker gets closed when clicking in appended input box #135

Closed chrigublaser closed 9 years ago

chrigublaser commented 10 years ago

"appendDtpicker()" binds the click event of the appended input box. When the event is fired, the eventhandler checks the activePickerId, based on this id the picker will be opened or closed. There is another eventHandler which is binded on the "hover" of the picker which sets and removes the activePickerId. The Problem is, that when the mouse leaves the picker, the activePickerId will be set to -1.

to reproduce this issue: 1) click in the appended input box --> picker gets opened 2) navigate the mouse over the picker --> activePickerId gets set 3) navigate the mouse to an other window and click to set the focus --> activePickerId gets set to -1 4) click in the appended input box --> picker gets closed.

The problem could be fixed by adding the same hover event handler also to the input box.

Regards

royzrj commented 9 years ago

Duplicate #82