1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-12 10:14:02 +02:00

Fix - delete selected inline void in chrome (#4526)

* Fix - delete selected inline void in chrome

* Add changeset

* Fix prettier on changeset

Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
This commit is contained in:
Victor Baron
2021-09-24 13:12:29 +02:00
committed by GitHub
parent 38717ad455
commit bc85497d58
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
'slate-react': patch
---
Fix - delete selected inline void in chrome

View File

@@ -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
}