Skip to content

Commit

Permalink
Add comment explaining setTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
areznik10 committed Apr 19, 2024
1 parent 65858b7 commit c626b1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/lexical-table/src/LexicalTableSelectionHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export function applyTableHandlers(
};

const onMouseMove = (moveEvent: MouseEvent) => {
// delaying mousemove handler to allow selectionchange handler from LexicalEvents.ts to be executed first
setTimeout(() => {
const focusCell = getDOMCellFromTarget(moveEvent.target as Node);
if (
Expand Down

0 comments on commit c626b1b

Please sign in to comment.