diff --git a/js/dlg/message-box.js b/js/dlg/message-box.js index 8fe51611..247dad25 100644 --- a/js/dlg/message-box.js +++ b/js/dlg/message-box.js @@ -150,10 +150,10 @@ messageBox.show = async ({ function resolveWith(value) { setTimeout(messageBox._resolve, 0, value); - messageBox.close(true); if (messageBox.element.contains(document.activeElement)) { messageBox._originalFocus.focus(); } + messageBox.close(true); } function createElement() {