Skip to content

Commit 6489d55

Browse files
author
Ajit Kumar
committed
fix(touchSelectionMenu): reset #menuRequested on outside-editor dismissal
Tapping outside the editor dismisses the menu but was not resetting #menuRequested, causing the menu to reappear unexpectedly on programmatic focus + state change with no new user selection.
1 parent 965d064 commit 6489d55

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/cm/touchSelectionMenu.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ class TouchSelectionMenuController {
306306
}
307307
this.#shiftSelectionSession = null;
308308
this.#isPointerInteracting = false;
309+
this.#menuRequested = false;
309310
this.#hideMenu();
310311
};
311312

0 commit comments

Comments
 (0)