Twitter Bootstrap modal blocks text input field

前端 未结 11 1175
野趣味
野趣味 2020-12-02 18:42

I am trying to use a modal as a popup help window. I set backdrop to \'nothing\'. When the modal is opened (without backdrop) input fields in \'original\' page cannot be foc

11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 19:08

    Following way can fix this issue for Bootstrap v2.3.2, Kendo UI Grid version 2013.3.1119.340 in IE11.

    the point is remove class "in" from modal's class. No need to use "style='display:none;'" since it will cause Kendo Grid UI oddly.

    html codes before fixed:

      

    html codes after fixed:

      
    

    same time, add following line of javascript:

        $("#YourWindow").on('shown', function () {
            $(document).off('focusin.modal');
        });
    

提交回复
热议问题