Changes between Initial Version and Version 1 of Ticket #13251
- Timestamp:
- Jan 24, 2016, 4:24:04 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13251 – Description
initial v1 3 3 I tried to hide the popup on scroll: 4 4 5 {{{#!javascript 5 6 $("html, body").on("DOMMouseScroll MouseScrollEvent MozMousePixelScroll wheel scroll", function () 6 7 { 7 8 $('.datePicker').datepicker("hide"); 8 9 }); 10 }}} 9 11 10 12 This works but the datepicker doesn't re-open unless the element loses focus focus first (e.g. click somewhere). This seems to be a general problem with the datepicker, in fact. … … 12 14 There's a hackish example at http://jsfiddle.net/2pn8Lctd/ which shows both problems (at least in Firefox): 13 15 14 1. click on datepicker 2, then the scrollbar. The datepicker will hide but not re-open unless somewhere else is clicked first. 15 16 2. click on datepicker 2 and use the mousewheel to scroll; the datepicker will stay put. 16 1. click on datepicker 2, then the scrollbar. The datepicker will hide but not re-open unless somewhere else is clicked first. 17 2. click on datepicker 2 and use the mousewheel to scroll; the datepicker will stay put. 17 18 18 19 Datepicker 1 works as expected, except the open close issue applies here, too.