Skip to content

Commit

Permalink
Fix click and drag table selection in Firefox #7245
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Mar 3, 2025
1 parent b4d8797 commit efe7861
Show file tree
Hide file tree
Showing 5 changed files with 446 additions and 22 deletions.
5 changes: 4 additions & 1 deletion packages/lexical-playground/__tests__/e2e/Images.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,10 @@ test.describe('Images', () => {
page,
'span[data-lexical-text="true"]',
);
await dragMouse(page, textBoundingBox, textBoundingBox, 'start', 'middle');
await dragMouse(page, textBoundingBox, textBoundingBox, {
positionEnd: 'middle',
positionStart: 'start',
});

const lexicalSelection = await evaluate(page, (editor) => {
return window.lexicalEditor._editorState._selection;
Expand Down
Loading

0 comments on commit efe7861

Please sign in to comment.