diff --git a/ts/editor/mathjax-overlay/MathjaxOverlay.svelte b/ts/editor/mathjax-overlay/MathjaxOverlay.svelte index 5e9d2b5b4..626913915 100644 --- a/ts/editor/mathjax-overlay/MathjaxOverlay.svelte +++ b/ts/editor/mathjax-overlay/MathjaxOverlay.svelte @@ -223,7 +223,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html resetHandle(); }} on:blur={async () => { - resetHandle(); + await tick(); + await resetHandle(); }} on:close={resetHandle} let:editor={mathjaxEditor}