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 +7 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/slate-react.js +2 -2
- package/dist/slate-react.min.js +1 -1
- package/package.json +1 -1
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
|
|
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);
|