slate-react 0.96.0 → 0.97.0-202351612759

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
@@ -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;