slate 0.142.0 → 0.142.1

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
@@ -3162,6 +3162,13 @@ const inlineInsertionPoint = (editor, point) => {
3162
3162
  };
3163
3163
  const getInsertionPoint = (editor, point) => {
3164
3164
  var _inline$point, _inline$affinity;
3165
+ if (!Text.isText(Node.getIf(editor, point.path))) {
3166
+ return {
3167
+ point,
3168
+ affinity: false,
3169
+ inlineAffinity: null
3170
+ };
3171
+ }
3165
3172
  const inline = inlineInsertionPoint(editor, point);
3166
3173
  let result = (_inline$point = inline === null || inline === void 0 ? void 0 : inline.point) !== null && _inline$point !== void 0 ? _inline$point : point;
3167
3174
  let affinity = inline !== null;