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

Fix deletion of selected inline void nodes in Safari (#4331)

Co-authored-by: Claudéric Demers <clauderic.d@gmail.com>
This commit is contained in:
Szymon Wiszczuk
2021-06-09 17:54:41 +02:00
committed by GitHub
parent 6c993523ca
commit a3bc97af3e
2 changed files with 7 additions and 2 deletions

View File

@@ -1066,8 +1066,8 @@ export const Editable = (props: EditableProps) => {
return
}
} else {
if (IS_CHROME) {
// COMPAT: Chrome supports `beforeinput` event but does not fire
if (IS_CHROME || IS_SAFARI) {
// COMPAT: Chrome and Safari support `beforeinput` event but do not fire
// an event when deleting backwards in a selected void inline node
if (
selection &&