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.js CHANGED
@@ -1175,7 +1175,7 @@ var ReactEditor = {
1175
1175
  // will cause `toSlatePoint` to throw an error. (2023/03/07)
1176
1176
 
1177
1177
 
1178
- if ('getAttribute' in focusNode && focusNode.getAttribute('contenteditable') === 'false') {
1178
+ if ('getAttribute' in focusNode && focusNode.getAttribute('contenteditable') === 'false' && focusNode.getAttribute('data-slate-void') !== 'true') {
1179
1179
  var _anchorNode$textConte;
1180
1180
 
1181
1181
  focusNode = anchorNode;