Skip to content

Commit

Permalink
Clean up extra selections
Browse files Browse the repository at this point in the history
  • Loading branch information
ivailop7 authored Jul 28, 2024
1 parent b26ce5a commit ff7b59f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/lexical-table/src/LexicalTableSelectionHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,7 @@ export function applyTableHandlers(
if (!parentNode) {
return false;
}
const nextNode = table.getNextSibling() || table.getPreviousSibling();
table.remove();
if (nextNode) {
nextNode.selectStart();
} else {
parentNode.selectStart();
}
}
}
return false;
Expand Down

0 comments on commit ff7b59f

Please sign in to comment.