Jquery Ui Datepicker month/year dropdown is not working in popup in latest firefox

前端 未结 7 1003
萌比男神i
萌比男神i 2020-12-29 07:30

Somehow my jQuery UI Datepicker Month/Year Dropdown not working in any popup in latest firefox .

When I click on Month or Year Dropdown, the options list doesn\'t ap

相关标签:
7条回答
  • 2020-12-29 08:08

    Magnific popup with jquery ui datepicker (changemonth and changeyear is enabled)

    Try this code

    // Added to make calendar drop downs work properly
    $.magnificPopup.instance._onFocusIn = function(e) {
    
        if( $(e.target).hasClass('ui-datepicker-month') ) {
            return true;
        }
        if( $(e.target).hasClass('ui-datepicker-year') ) {
            return true;
        }
        $.magnificPopup.proto._onFocusIn.call(this,e);
    };
    
    0 讨论(0)
提交回复
热议问题