Skip to content

Commit 2c74f83

Browse files
committed
fix: fixed bug that required double-clicking on the toolbar buttons of the tiptapeditor
1 parent 8bc8222 commit 2c74f83

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plugins/stack-overflow-teams/src/components/StackOverflow/TiptapEditor.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ export const TiptapEditor: React.FC<TiptapEditorProps> = ({
8787
title: string;
8888
}) => (
8989
<Button
90+
onMouseDown={(e) => {
91+
e.preventDefault()
92+
}}
9093
onClick={onClick}
9194
disabled={disabled}
9295
variant={isActive ? 'contained' : 'text'}

0 commit comments

Comments
 (0)