fix focus issues on calendar modals #1561
This commit is contained in:
parent
fe17b41679
commit
2a3998a473
2 changed files with 3 additions and 1 deletions
|
@ -2209,6 +2209,7 @@ APP.recurrenceRule = {
|
|||
setFormat(allDay);
|
||||
});
|
||||
});
|
||||
UI.addTabListener(el);
|
||||
};
|
||||
var onCalendarEditPopup = function (el) {
|
||||
var $el = $(el);
|
||||
|
@ -2276,6 +2277,7 @@ APP.recurrenceRule = {
|
|||
$b.closest('.tui-full-calendar-floating-layer').hide();
|
||||
});
|
||||
});
|
||||
UI.addTabListener(el);
|
||||
};
|
||||
var onPopupRemoved = function () {
|
||||
var start, end;
|
||||
|
|
|
@ -577,7 +577,7 @@ define([
|
|||
return frame;
|
||||
};
|
||||
|
||||
let addTabListener = frame => {
|
||||
let addTabListener = UI.addTabListener = frame => {
|
||||
// find focusable elements
|
||||
let modalElements = $(frame).find('a, button, input, [tabindex]:not([tabindex="-1"]), textarea').filter(':visible').filter(':not(:disabled)');
|
||||
|
||||
|
|
Loading…
Reference in a new issue