From 7144949dd5ceffea558f319bab6c8cdb5d6cdb28 Mon Sep 17 00:00:00 2001 From: Hikaru Y Date: Wed, 14 Dec 2022 13:10:23 +0900 Subject: [PATCH] Fix MathJax popup fails to appear (#2268) * Fix MathJax popup fails to appear when adding MathJax via Fx button * Revert "Fix MathJax popup fails to appear when adding MathJax via Fx button" This reverts commit 11115f59bcbde22bbc0448bfd6b86e887a8a56a7. * Fix MathJax popup fails to appear when adding MathJax via Fx button Use setTimeout() according to the PR review --- ts/editor/editor-toolbar/LatexButton.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/editor/editor-toolbar/LatexButton.svelte b/ts/editor/editor-toolbar/LatexButton.svelte index b281e9acd..f511c3b31 100644 --- a/ts/editor/editor-toolbar/LatexButton.svelte +++ b/ts/editor/editor-toolbar/LatexButton.svelte @@ -94,7 +94,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html {#each dropdownItems as [callback, keyCombination, label]} - + setTimeout(callback, 100)}> {label} {getPlatformString(keyCombination)}