Fix MathJax editor not hiding on blur again

Originally fixed with e14f87ba99,
accidentally reverted in #2070
This commit is contained in:
Damien Elmes 2022-12-08 22:44:45 +10:00
parent 8f311f5e8c
commit 3413115be7

View File

@ -222,10 +222,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
placeHandle(true);
resetHandle();
}}
on:tab={async () => {
// Instead of resetting on blur, we reset on tab
// Otherwise, when clicking from Mathjax element to another,
// the user has to click twice (focus is called before blur?)
on:blur={async () => {
resetHandle();
}}
on:close={resetHandle}