Skip to content

Commit

Permalink
Send click event in read-only editor (#5714)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivailop7 authored Mar 14, 2024
1 parent 783f0aa commit 64468b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lexical/src/LexicalEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ export function addRootElementEvents(
return;
}
stopLexicalPropagation(event);
if (editor.isEditable()) {
if (editor.isEditable() || eventName === 'click') {
onEvent(event, editor);
}
}
Expand Down

0 comments on commit 64468b5

Please sign in to comment.