From 5a64dfc8bb8169e72b7c1164f18c6912e9e3576e Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sat, 28 Sep 2024 17:46:34 +0800 Subject: fix: hide menu anyway when cursor changes --- src/editor.mjs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/editor.mjs b/src/editor.mjs index ea80a19..c04ba24 100644 --- a/src/editor.mjs +++ b/src/editor.mjs @@ -476,6 +476,7 @@ const addSuggestions = (anchor, suggestions) => { // EVENT: Suggests for current selection {{{ // FIXME Dont show suggestion when selecting multiple chars cm.on("cursorActivity", (_) => { + menu.style.display = 'none' const anchor = cm.getCursor() if (insideCodeblockForMap(anchor)) { -- cgit v1.2.3-70-g09d2