@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.
package/dist/menus/index.js
CHANGED
|
@@ -2290,6 +2290,10 @@ var FloatingMenuView = class {
|
|
|
2290
2290
|
}
|
|
2291
2291
|
}
|
|
2292
2292
|
updatePosition() {
|
|
2293
|
+
var _a, _b;
|
|
2294
|
+
if (!((_b = (_a = this.view) == null ? void 0 : _a.dom) == null ? void 0 : _b.parentNode)) {
|
|
2295
|
+
return;
|
|
2296
|
+
}
|
|
2293
2297
|
const { selection } = this.editor.state;
|
|
2294
2298
|
const domRect = posToDOMRect2(this.view, selection.from, selection.to);
|
|
2295
2299
|
const virtualElement = {
|
|
@@ -2301,8 +2305,8 @@ var FloatingMenuView = class {
|
|
|
2301
2305
|
strategy: this.floatingUIOptions.strategy,
|
|
2302
2306
|
middleware: this.middlewares
|
|
2303
2307
|
}).then(({ x, y, strategy, middlewareData }) => {
|
|
2304
|
-
var
|
|
2305
|
-
if (((
|
|
2308
|
+
var _a2, _b2;
|
|
2309
|
+
if (((_a2 = middlewareData.hide) == null ? void 0 : _a2.referenceHidden) || ((_b2 = middlewareData.hide) == null ? void 0 : _b2.escaped)) {
|
|
2306
2310
|
this.element.style.visibility = "hidden";
|
|
2307
2311
|
return;
|
|
2308
2312
|
}
|