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

QuestionsCategory: QuestionsJquery Ui Datepicker month/year dropdown is not working in boostrap modal popup in firefox
hardeep asked 3 months ago

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

1 Answers
therichpost answered 3 months ago

Here you can check the working and tested exmaple code:
    $(“#birthday”).datepicker({
        beforeShow: function(input, inst) {
          $(document).off(‘focusin.bs.modal’);
        },
        onClose:function(){
          $(document).on(‘focusin.bs.modal’);
        },
        changeMonth: true,
        changeYear: true
    });

hardeep replied 3 months ago

Thank you, it is working now

therichpost replied 3 months ago

//just need to add
beforeShow: function(input, inst) {
$(document).off(‘focusin.bs.modal’);
},
onClose:function(){
$(document).on(‘focusin.bs.modal’);
}

Your Answer

19 + 20 =