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.
package/dist/index.js CHANGED
@@ -1938,8 +1938,8 @@ var Editable = function Editable(props) {
1938
1938
  return;
1939
1939
  }
1940
1940
  } else {
1941
- if (IS_CHROME) {
1942
- // COMPAT: Chrome supports `beforeinput` event but does not fire
1941
+ if (IS_CHROME || IS_SAFARI) {
1942
+ // COMPAT: Chrome and Safari support `beforeinput` event but do not fire
1943
1943
  // an event when deleting backwards in a selected void inline node
1944
1944
  if (selection && (Hotkeys.isDeleteBackward(nativeEvent) || Hotkeys.isDeleteForward(nativeEvent)) && slate.Range.isCollapsed(selection)) {
1945
1945
  var currentNode = slate.Node.parent(editor, selection.anchor.path);