mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-13 18:53:59 +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:
5
.changeset/loud-planets-count.md
Normal file
5
.changeset/loud-planets-count.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'slate-react': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix - delete selected inline void in chrome
|
@@ -1215,7 +1215,7 @@ export const Editable = (props: EditableProps) => {
|
|||||||
Editor.isInline(editor, currentNode)
|
Editor.isInline(editor, currentNode)
|
||||||
) {
|
) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
Transforms.delete(editor, { unit: 'block' })
|
Editor.deleteBackward(editor, { unit: 'block' })
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user