Skip to content

Commit

Permalink
Fix firefox mousemove range->table selection
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Nov 24, 2024
1 parent 6ad4755 commit f235525
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/lexical-table/src/LexicalTableSelectionHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,13 @@ export function applyTableHandlers(
tableObserver.$setFocusCellForSelection(focusCell);
return true;
}
} else if (
focusCell !== tableObserver.anchorCell &&
$isSelectionInTable(selection, tableNode)
) {
// The selection has crossed cells
tableObserver.$setFocusCellForSelection(focusCell);
return true;
}
}
const shouldCheckSelection =
Expand Down

0 comments on commit f235525

Please sign in to comment.