mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix MathJax editor not hiding on blur again
Originally fixed with e14f87ba99
,
accidentally reverted in #2070
This commit is contained in:
parent
8f311f5e8c
commit
3413115be7
1 changed files with 1 additions and 4 deletions
|
@ -222,10 +222,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
placeHandle(true);
|
placeHandle(true);
|
||||||
resetHandle();
|
resetHandle();
|
||||||
}}
|
}}
|
||||||
on:tab={async () => {
|
on:blur={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?)
|
|
||||||
resetHandle();
|
resetHandle();
|
||||||
}}
|
}}
|
||||||
on:close={resetHandle}
|
on:close={resetHandle}
|
||||||
|
|
Loading…
Reference in a new issue