diff --git a/ts/editor/NoteEditor.svelte b/ts/editor/NoteEditor.svelte index dd5b96237..f17276ee3 100644 --- a/ts/editor/NoteEditor.svelte +++ b/ts/editor/NoteEditor.svelte @@ -549,7 +549,10 @@ the AddCards dialog) should be implemented in the user of this component. --border-left-radius="5px" --border-right-radius="5px" class="io-select-image-btn" - on:click={() => bridgeCommand("addImageForOcclusion")} + on:click={() => { + imageOcclusionMode = undefined; + bridgeCommand("addImageForOcclusion"); + }} > {tr.notetypesIoSelectImage()}