limit messageBox focus shift to config-dialog
This commit is contained in:
parent
cf053382da
commit
9c3566f7d5
|
@ -59,7 +59,8 @@ messageBox.show = async ({
|
||||||
|
|
||||||
messageBox._originalFocus = document.activeElement;
|
messageBox._originalFocus = document.activeElement;
|
||||||
// focus the first focusable child but skip the first external link which is usually `feedback`
|
// focus the first focusable child but skip the first external link which is usually `feedback`
|
||||||
if ((moveFocus(messageBox.element, 0) || {}).target === '_blank') {
|
if ((moveFocus(messageBox.element, 0) || {}).target === '_blank' &&
|
||||||
|
/config-dialog/.test(className)) {
|
||||||
moveFocus(messageBox.element, 1);
|
moveFocus(messageBox.element, 1);
|
||||||
}
|
}
|
||||||
// suppress focus outline when invoked via click
|
// suppress focus outline when invoked via click
|
||||||
|
|
Loading…
Reference in New Issue
Block a user