Open Lipchen92 opened 2 years ago
This can be observed by performing a slow click. When you hold down the mouse click button for 1 sec and release it, the date popup opens(on mousedown), then disappears(on mouseup). This is because the document.click event triggers just after the popup open and is detected as an outside click and closes the popup.
The solution is to use document.mousedown instead of document.click.
Change
$document.on( 'click.' + STATE.id + ' focusin.' + STATE.id, function( event ) {
with
$document.on( 'mousedown.' + STATE.id + ' focusin.' + STATE.id, function( event ) {
in picker.js
And change .on("click."+
with .on("mousedown."+
in compressed/picker.js
When click on the date picker, it sometimes flash but did not popup. It seem showed but immediately close down. Would like to know how to solve this.
/html/
/jquery/ $(document).ready(function() { /date picker/ /from date/ var from_$input = $('#fromDate').pickadate(), frompicker = from$input.pickadate('picker')