Skip to content

Commit

Permalink
Allow focus/blur propagation in useYjsFocusTracking (facebook#3617)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm authored Dec 22, 2022
1 parent 3694d92 commit 8bbf186
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/lexical-react/src/shared/useYjsCollaboration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,17 @@ export function useYjsFocusTracking(
return mergeRegister(
editor.registerCommand(
FOCUS_COMMAND,
(payload) => {
() => {
setLocalStateFocus(provider, name, color, true);
return true;
return false;
},
COMMAND_PRIORITY_EDITOR,
),
editor.registerCommand(
BLUR_COMMAND,
(payload) => {
() => {
setLocalStateFocus(provider, name, color, false);
return true;
return false;
},
COMMAND_PRIORITY_EDITOR,
),
Expand Down

0 comments on commit 8bbf186

Please sign in to comment.