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/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # slate-react
2
2
 
3
- ## 0.65.1-202157193256
3
+ ## 0.65.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#4331](https://github.com/ianstormtaylor/slate/pull/4331) [`a3bc97af`](https://github.com/ianstormtaylor/slate/commit/a3bc97af3e3bc88ccf9ab7eadb1a56c0bc92f436) Thanks [@golota60](https://github.com/golota60)! - Fix deletion of selected inline void nodes in Safari when presssing `backspace` or `delete`. This is a bug that [was originally fixed only for Google Chrome](https://github.com/ianstormtaylor/slate/issues/3456), but the fix also needs to be applied in Safari.
8
+
9
+ ## 0.65.1
4
10
 
5
11
  ### Patch Changes
6
12
 
package/dist/index.es.js CHANGED
@@ -1779,8 +1779,8 @@ var Editable = props => {
1779
1779
  return;
1780
1780
  }
1781
1781
  } else {
1782
- if (IS_CHROME) {
1783
- // COMPAT: Chrome supports `beforeinput` event but does not fire
1782
+ if (IS_CHROME || IS_SAFARI) {
1783
+ // COMPAT: Chrome and Safari support `beforeinput` event but do not fire
1784
1784
  // an event when deleting backwards in a selected void inline node
1785
1785
  if (selection && (Hotkeys.isDeleteBackward(nativeEvent) || Hotkeys.isDeleteForward(nativeEvent)) && Range.isCollapsed(selection)) {
1786
1786
  var currentNode = Node.parent(editor, selection.anchor.path);