@tiptap/vue-2 3.6.2 → 3.6.3

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.
@@ -1897,13 +1897,14 @@ var BubbleMenuView = class {
1897
1897
  return shouldShow;
1898
1898
  }
1899
1899
  show() {
1900
- var _a, _b;
1900
+ var _a;
1901
1901
  if (this.isVisible) {
1902
1902
  return;
1903
1903
  }
1904
1904
  this.element.style.visibility = "visible";
1905
1905
  this.element.style.opacity = "1";
1906
- (_b = (_a = this.appendTo) != null ? _a : this.view.dom.parentElement) == null ? void 0 : _b.appendChild(this.element);
1906
+ const appendToElement = typeof this.appendTo === "function" ? this.appendTo() : this.appendTo;
1907
+ (_a = appendToElement != null ? appendToElement : this.view.dom.parentElement) == null ? void 0 : _a.appendChild(this.element);
1907
1908
  if (this.floatingUIOptions.onShow) {
1908
1909
  this.floatingUIOptions.onShow();
1909
1910
  }
@@ -2208,13 +2209,14 @@ var FloatingMenuView = class {
2208
2209
  this.updateHandler(view, selectionChanged, docChanged, oldState);
2209
2210
  }
2210
2211
  show() {
2211
- var _a, _b;
2212
+ var _a;
2212
2213
  if (this.isVisible) {
2213
2214
  return;
2214
2215
  }
2215
2216
  this.element.style.visibility = "visible";
2216
2217
  this.element.style.opacity = "1";
2217
- (_b = (_a = this.appendTo) != null ? _a : this.view.dom.parentElement) == null ? void 0 : _b.appendChild(this.element);
2218
+ const appendToElement = typeof this.appendTo === "function" ? this.appendTo() : this.appendTo;
2219
+ (_a = appendToElement != null ? appendToElement : this.view.dom.parentElement) == null ? void 0 : _a.appendChild(this.element);
2218
2220
  if (this.floatingUIOptions.onShow) {
2219
2221
  this.floatingUIOptions.onShow();
2220
2222
  }