From 3413115be7f6533dee88c094d82641e24d6fe970 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 8 Dec 2022 22:44:45 +1000 Subject: [PATCH] Fix MathJax editor not hiding on blur again Originally fixed with e14f87ba99a0bd81a45701dda0b05ae437fe2478, accidentally reverted in #2070 --- ts/editor/mathjax-overlay/MathjaxOverlay.svelte | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ts/editor/mathjax-overlay/MathjaxOverlay.svelte b/ts/editor/mathjax-overlay/MathjaxOverlay.svelte index 3e80819dd..5e9d2b5b4 100644 --- a/ts/editor/mathjax-overlay/MathjaxOverlay.svelte +++ b/ts/editor/mathjax-overlay/MathjaxOverlay.svelte @@ -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}