From 474ac9717994b9e7d48d43e455332c9aaeee0616 Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Wed, 30 Oct 2024 23:57:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=AA=E8=AF=BB=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=A3=80=E6=9F=A5=E4=BB=A5=E9=98=B2=E6=AD=A2=E5=9C=A8?= =?UTF-8?q?=E9=94=AE=E7=9B=98=E4=BB=BB=E5=8A=A1=E4=B8=AD=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E8=BE=93=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MarkdownEditor/editor/utils/keyboard.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MarkdownEditor/editor/utils/keyboard.ts b/src/MarkdownEditor/editor/utils/keyboard.ts index c10a49d0..421f4e23 100644 --- a/src/MarkdownEditor/editor/utils/keyboard.ts +++ b/src/MarkdownEditor/editor/utils/keyboard.ts @@ -222,6 +222,9 @@ export class KeyboardTask { input.value = ''; } }; + if (input.dataset.readonly) { + return; + } input.click(); input.remove(); }