From fecd660de6ae9bdf7d6ec2731f5fcef822760a0d Mon Sep 17 00:00:00 2001 From: Botho <1258870+elbotho@users.noreply.github.com> Date: Mon, 7 Aug 2023 14:11:51 +0200 Subject: [PATCH 1/2] stop latex overlay from closing on 2 or 3 clicks --- src/serlo-editor/math/editor.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/serlo-editor/math/editor.tsx b/src/serlo-editor/math/editor.tsx index 0eb00b31b9..035cbf73ad 100644 --- a/src/serlo-editor/math/editor.tsx +++ b/src/serlo-editor/math/editor.tsx @@ -261,7 +261,10 @@ export function MathEditor(props: MathEditorProps) { function renderOverlayPortal() { const children = ( -
{hasError ? mathStrings.onlyLatex : mathStrings.latexEditorTitle}
From 4932ddea72aa68b9acd555b6187f1146875208a6 Mon Sep 17 00:00:00 2001 From: Botho <1258870+elbotho@users.noreply.github.com> Date: Mon, 7 Aug 2023 14:15:06 +0200 Subject: [PATCH 2/2] add comment --- src/serlo-editor/math/editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serlo-editor/math/editor.tsx b/src/serlo-editor/math/editor.tsx index 035cbf73ad..822f040fa0 100644 --- a/src/serlo-editor/math/editor.tsx +++ b/src/serlo-editor/math/editor.tsx @@ -263,7 +263,7 @@ export function MathEditor(props: MathEditorProps) { const children = ({hasError ? mathStrings.onlyLatex : mathStrings.latexEditorTitle}