jQuery UI Focus Stealing

后端 未结 5 1369
遇见更好的自我
遇见更好的自我 2020-12-17 18:16

Whenever I type something in the following Insert Hyperlink text input, all the words are going to textarea behind it. OK and Cancel buttons are working fine bu

5条回答
  •  佛祖请我去吃肉
    2020-12-17 18:57

    Another way to stop blocking focus from jquery dialog

    $.widget("ui.dialog", $.ui.dialog, {
        _allowInteraction: function (event) {
            return !!$(event.target).closest(".input-container").length || this._super(event);
        }
    });
    

    Where .input-container is container which contains controls that should receive focus.

提交回复
热议问题