@tiptap/vue-2 3.0.6 → 3.0.8

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.
@@ -1759,8 +1759,10 @@ var BubbleMenuView = class {
1759
1759
  }
1760
1760
  updatePosition() {
1761
1761
  const { selection } = this.editor.state;
1762
+ const domRect = posToDOMRect(this.view, selection.from, selection.to);
1762
1763
  let virtualElement = {
1763
- getBoundingClientRect: () => posToDOMRect(this.view, selection.from, selection.to)
1764
+ getBoundingClientRect: () => domRect,
1765
+ getClientRects: () => [domRect]
1764
1766
  };
1765
1767
  if (selection instanceof CellSelection) {
1766
1768
  const { $anchorCell, $headCell } = selection;
@@ -1776,7 +1778,8 @@ var BubbleMenuView = class {
1776
1778
  toDOM.getBoundingClientRect()
1777
1779
  );
1778
1780
  virtualElement = {
1779
- getBoundingClientRect: () => clientRect
1781
+ getBoundingClientRect: () => clientRect,
1782
+ getClientRects: () => [clientRect]
1780
1783
  };
1781
1784
  }
1782
1785
  computePosition2(virtualElement, this.element, {
@@ -2097,8 +2100,10 @@ var FloatingMenuView = class {
2097
2100
  }
2098
2101
  updatePosition() {
2099
2102
  const { selection } = this.editor.state;
2103
+ const domRect = posToDOMRect2(this.view, selection.from, selection.to);
2100
2104
  const virtualElement = {
2101
- getBoundingClientRect: () => posToDOMRect2(this.view, selection.from, selection.to)
2105
+ getBoundingClientRect: () => domRect,
2106
+ getClientRects: () => [domRect]
2102
2107
  };
2103
2108
  computePosition2(virtualElement, this.element, {
2104
2109
  placement: this.floatingUIOptions.placement,