Skip to content

Commit

Permalink
添加只读状态检查以防止在键盘任务中重复点击输入
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Oct 30, 2024
1 parent 32488ac commit 474ac97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MarkdownEditor/editor/utils/keyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ export class KeyboardTask {
input.value = '';
}
};
if (input.dataset.readonly) {
return;
}
input.click();
input.remove();
}
Expand Down

1 comment on commit 474ac97

@vercel
Copy link

@vercel vercel bot commented on 474ac97 Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.