Skip to content

Commit

Permalink
fix: ignore backspace on empty table cells to avoid editor crash (#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi authored Nov 27, 2024
1 parent 566ee6f commit 09f4b17
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Future<void> onDelete(
AppFlowyEditorLog.input.debug('onDelete: $deletion');

final selection = editorState.selection;
if (selection == null) {
if (selection == null ||
(selection.end.offset == 0 && selection.end.path.length > 1)) {
return;
}

Expand Down

0 comments on commit 09f4b17

Please sign in to comment.