slate-react 0.96.0 → 0.97.0-202351612843

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.es.js CHANGED
@@ -241,7 +241,7 @@ var normalizeDOMPoint = domPoint => {
241
241
  return [node, offset];
242
242
  };
243
243
  /**
244
- * Determines wether the active element is nested within a shadowRoot
244
+ * Determines whether the active element is nested within a shadowRoot
245
245
  */
246
246
 
247
247
  var hasShadowRoot = node => {
@@ -919,7 +919,7 @@ var ReactEditor = {
919
919
  // will cause `toSlatePoint` to throw an error. (2023/03/07)
920
920
 
921
921
 
922
- if ('getAttribute' in focusNode && focusNode.getAttribute('contenteditable') === 'false') {
922
+ if ('getAttribute' in focusNode && focusNode.getAttribute('contenteditable') === 'false' && focusNode.getAttribute('data-slate-void') !== 'true') {
923
923
  var _anchorNode$textConte;
924
924
 
925
925
  focusNode = anchorNode;