Skip to content

Commit ca5cf50

Browse files
author
John McCambridge
committed
Check to see if overlay is present before spawning another
1 parent 309d15c commit ca5cf50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ide/src/fill/dialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class Dialog {
130130
* Show the dialog.
131131
*/
132132
public show(): void {
133-
if (!this.cachedActiveElement) {
133+
if (!this.cachedActiveElement && document.getElementsByClassName(this.overlay.className).length === 0) {
134134
this.cachedActiveElement = document.activeElement as HTMLElement;
135135
(document.querySelector(".monaco-workbench") || document.body).appendChild(this.overlay);
136136
document.addEventListener("keydown", this.onKeydown);

0 commit comments

Comments
 (0)