Skip to content

Commit 372c4c3

Browse files
MattPuamatt-metivier
authored andcommitted
perf(dashboard): avoid spurious edit mode when clicking text card markdown (#52095)
1 parent be8e5b5 commit 372c4c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/scenes/dashboard/DashboardItems.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,10 @@ export function DashboardItems(): JSX.Element {
300300
return
301301
}
302302

303-
// Don't trigger when clicking obvious interactive controls
303+
// Don't trigger when clicking obvious interactive controls or readonly rich text (TipTap/LemonMarkdown).
304304
if (
305305
target.closest(
306-
'input,textarea,button,select,a,p,h4,[contenteditable="true"],[role="textbox"]'
306+
'input,textarea,button,select,a,p,h4,[contenteditable="true"],[role="textbox"],.ProseMirror,.LemonMarkdown'
307307
)
308308
) {
309309
return

0 commit comments

Comments
 (0)