slate-react 0.77.2-20223192094 → 0.77.3

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.
@@ -2397,10 +2397,6 @@
2397
2397
  _native = false;
2398
2398
  }
2399
2399
  }
2400
- }
2401
-
2402
- if (!_native) {
2403
- event.preventDefault();
2404
2400
  } // COMPAT: For the deleting forward/backward input types we don't want
2405
2401
  // to change the selection because it is the range that will be deleted,
2406
2402
  // and those commands determine that for themselves.
@@ -2418,6 +2414,7 @@
2418
2414
  });
2419
2415
 
2420
2416
  if (!selection || !slate.Range.equals(selection, range)) {
2417
+ _native = false;
2421
2418
  var selectionRef = editor.selection && slate.Editor.rangeRef(editor, editor.selection);
2422
2419
  slate.Transforms.select(editor, range);
2423
2420
 
@@ -2426,6 +2423,10 @@
2426
2423
  }
2427
2424
  }
2428
2425
  }
2426
+ }
2427
+
2428
+ if (!_native) {
2429
+ event.preventDefault();
2429
2430
  } // COMPAT: If the selection is expanded, even if the command seems like
2430
2431
  // a delete forward/backward command it should delete the selection.
2431
2432