@tiptap/vue-2 3.22.5 → 3.23.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.
@@ -2317,6 +2317,10 @@ var FloatingMenuView = class {
2317
2317
  }
2318
2318
  }
2319
2319
  updatePosition() {
2320
+ var _a, _b;
2321
+ if (!((_b = (_a = this.view) == null ? void 0 : _a.dom) == null ? void 0 : _b.parentNode)) {
2322
+ return;
2323
+ }
2320
2324
  const { selection } = this.editor.state;
2321
2325
  const domRect = (0, import_core3.posToDOMRect)(this.view, selection.from, selection.to);
2322
2326
  const virtualElement = {
@@ -2328,8 +2332,8 @@ var FloatingMenuView = class {
2328
2332
  strategy: this.floatingUIOptions.strategy,
2329
2333
  middleware: this.middlewares
2330
2334
  }).then(({ x, y, strategy, middlewareData }) => {
2331
- var _a, _b;
2332
- if (((_a = middlewareData.hide) == null ? void 0 : _a.referenceHidden) || ((_b = middlewareData.hide) == null ? void 0 : _b.escaped)) {
2335
+ var _a2, _b2;
2336
+ if (((_a2 = middlewareData.hide) == null ? void 0 : _a2.referenceHidden) || ((_b2 = middlewareData.hide) == null ? void 0 : _b2.escaped)) {
2333
2337
  this.element.style.visibility = "hidden";
2334
2338
  return;
2335
2339
  }