slate-react 0.82.2-20228642513 → 0.82.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.
@@ -4506,6 +4506,11 @@
4506
4506
  androidInputManager === null || androidInputManager === void 0 ? void 0 : androidInputManager.handleUserSelect(range);
4507
4507
  }
4508
4508
  }
4509
+ } // Deselect the editor if the dom selection is not selectable in readonly mode
4510
+
4511
+
4512
+ if (readOnly && (!anchorNodeSelectable || !focusNodeSelectable)) {
4513
+ slate.Transforms.deselect(editor);
4509
4514
  }
4510
4515
  }
4511
4516
  }, 100), [readOnly]);