update dialogs
This commit is contained in:
parent
749d9ba550
commit
a048a3c69a
4 changed files with 18 additions and 8 deletions
|
@ -100,6 +100,9 @@
|
|||
}
|
||||
animateDialogOpen(dlg);
|
||||
|
||||
// Undo the auto-focus applied by the native dialog element
|
||||
safeBlur(document.activeElement);
|
||||
|
||||
if (dlg.getAttribute('data-autofocus') == 'true') {
|
||||
focusManager.autoFocus(dlg);
|
||||
}
|
||||
|
@ -118,6 +121,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
function safeBlur(el) {
|
||||
if (el && el.blur && el != document.body) {
|
||||
el.blur();
|
||||
}
|
||||
}
|
||||
|
||||
function addBackdropOverlay(dlg) {
|
||||
|
||||
var backdrop = document.createElement('div');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue