Fix cursor moving to field start when closing MathJax editor

Closes #2258
This commit is contained in:
Damien Elmes 2022-12-11 11:39:03 +10:00
parent 2179f9e133
commit 8506206c5b

View File

@ -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}