Changes between Initial Version and Version 1 of Ticket #13251


Ignore:
Timestamp:
Jan 24, 2016, 4:24:04 PM (6 years ago)
Author:
Ryan J Ollos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13251 – Description

    initial v1  
    33I tried to hide the popup on scroll:
    44
     5{{{#!javascript
    56$("html, body").on("DOMMouseScroll MouseScrollEvent MozMousePixelScroll wheel scroll", function ()
    67{
    78   $('.datePicker').datepicker("hide");
    89});
     10}}}
    911
    1012This 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.
     
    1214There's a hackish example at http://jsfiddle.net/2pn8Lctd/ which shows both problems (at least in Firefox):
    1315
    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.
    1718
    1819Datepicker 1 works as expected, except the open close issue applies here, too.