We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 993fa90 commit 26b6fadCopy full SHA for 26b6fad
1 file changed
packages/blockly/core/dialog.ts
@@ -251,7 +251,11 @@ function displayDialog(
251
252
let restoreFocus: (() => void) | undefined;
253
if (activeDialogCount === 0) {
254
- restoreFocus = getFocusManager().takeEphemeralFocus(dialog);
+ if (getFocusManager().ephemeralFocusTaken()) {
255
+ restoreFocus = undefined;
256
+ } else {
257
+ restoreFocus = getFocusManager().takeEphemeralFocus(dialog);
258
+ }
259
}
260
261
activeDialogCount++;
0 commit comments