Skip to content

Commit

Permalink
Remove the editor update
Browse files Browse the repository at this point in the history
  • Loading branch information
ivailop7 committed Aug 22, 2024
1 parent ec3901a commit c0ffda8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/lexical-table/src/LexicalTableSelectionHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,8 @@ export function applyTableHandlers(
$deleteCellHandler(event);
return true;
} else if ($isRangeSelection(selection)) {
editor.update(() => {
$deleteCellHandler(event);
selection.removeText();
});
$deleteCellHandler(event);
selection.removeText();
return true;
}
}
Expand Down

0 comments on commit c0ffda8

Please sign in to comment.