Reincorporate 8's updates
This commit is contained in:
parent
f52fd0d124
commit
f76512e513
|
@ -34,7 +34,12 @@ function messageBox({
|
||||||
document.body.appendChild(messageBox.element);
|
document.body.appendChild(messageBox.element);
|
||||||
|
|
||||||
messageBox.originalFocus = document.activeElement;
|
messageBox.originalFocus = document.activeElement;
|
||||||
moveFocus(messageBox.element, 1);
|
// skip external links like feedback
|
||||||
|
while ((moveFocus(messageBox.element, 1) || {}).target === '_blank') {/*NOP*/}
|
||||||
|
// suppress focus outline when invoked via click
|
||||||
|
if (focusAccessibility.lastFocusedViaClick && document.activeElement) {
|
||||||
|
document.activeElement.dataset.focusedViaClick = '';
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof onshow === 'function') {
|
if (typeof onshow === 'function') {
|
||||||
onshow(messageBox.element);
|
onshow(messageBox.element);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user