diff --git a/.changeset/loud-planets-count.md b/.changeset/loud-planets-count.md new file mode 100644 index 0000000000..277a9c86fd --- /dev/null +++ b/.changeset/loud-planets-count.md @@ -0,0 +1,5 @@ +--- +'slate-react': patch +--- + +Fix - delete selected inline void in chrome diff --git a/packages/slate-react/src/components/editable.tsx b/packages/slate-react/src/components/editable.tsx index 8a5848172c..2fd805d301 100644 --- a/packages/slate-react/src/components/editable.tsx +++ b/packages/slate-react/src/components/editable.tsx @@ -1215,7 +1215,7 @@ export const Editable = (props: EditableProps) => { Editor.isInline(editor, currentNode) ) { event.preventDefault() - Transforms.delete(editor, { unit: 'block' }) + Editor.deleteBackward(editor, { unit: 'block' }) return }