Skip to content

Commit

Permalink
fix: disable markdown shortcuts for collaboration (#5591)
Browse files Browse the repository at this point in the history
  • Loading branch information
junhsss authored Feb 12, 2024
1 parent 7a3f3fc commit ee6cd8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lexical-markdown/src/MarkdownShortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ export function registerMarkdownShortcuts(

return editor.registerUpdateListener(
({tags, dirtyLeaves, editorState, prevEditorState}) => {
// Ignore updates from undo/redo (as changes already calculated)
if (tags.has('historic')) {
// Ignore updates from collaboration and undo/redo (as changes already calculated)
if (tags.has('collaboration') || tags.has('historic')) {
return;
}

Expand Down

0 comments on commit ee6cd8b

Please sign in to comment.