我正在發行jQuery UI的焦點問題
無法獲得property'_focusTabbable'of未定義或空引用
我使用jQuery-UI-1.10.2.custom.js
在這裏我得到問題
if (!$.ui.dialog.overlayInstances) {
// Prevent use of anchors and inputs.
// We use a delay in case the overlay is created from an
// event that we're going to be cancelling. (#2804)
this._delay(function() {
// Handle .dialog().dialog("close") (#4065)
if ($.ui.dialog.overlayInstances) {
this.document.bind("focusin.dialog", function(event) {
if (!that._allowInteraction(event)) {
event.preventDefault();
**$(".ui-dialog:visible:last .ui-dialog-content")
.data(widgetFullName)._focusTabbable();**
}
});
}
});
}
這是您的代碼嗎?或者它是一些插件?或者它是jQuery UI本身? –
這是一個Jquery Ui本身 –
對於我的情況下的任何人,當使用widget工廠製作的jQuery.ui.dialog的自定義實現連續堆疊對話框時,我遇到了很多錯誤消息。看起來問題是在jQuery UI master中修補的,所以我做了這個快速入侵,直到我們可以更新。 https://pastebin.com/Q6ChMU84 – Marie