slate-react 0.65.1-202157193256 → 0.65.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3044,8 +3044,8 @@
3044
3044
  return;
3045
3045
  }
3046
3046
  } else {
3047
- if (IS_CHROME) {
3048
- // COMPAT: Chrome supports `beforeinput` event but does not fire
3047
+ if (IS_CHROME || IS_SAFARI) {
3048
+ // COMPAT: Chrome and Safari support `beforeinput` event but do not fire
3049
3049
  // an event when deleting backwards in a selected void inline node
3050
3050
  if (selection && (Hotkeys.isDeleteBackward(nativeEvent) || Hotkeys.isDeleteForward(nativeEvent)) && slate.Range.isCollapsed(selection)) {
3051
3051
  var currentNode = slate.Node.parent(editor, selection.anchor.path);