Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ueberdosis/tiptap into main
Browse files Browse the repository at this point in the history
  • Loading branch information
hanspagel committed Mar 29, 2021
2 parents 99edabd + 51259c7 commit ab14704
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/Components/Routes/Suggestions/index.vue
Expand Up @@ -224,8 +224,7 @@ export default {
// renders a popup with suggestions
// tiptap provides a virtualNode object for using popper.js (or tippy.js) for popups
renderPopup(node) {
const boundingClientRect = node.getBoundingClientRect()
const { x, y } = boundingClientRect
const { x, y } = node.getBoundingClientRect();
if (x === 0 && y === 0) {
return
Expand All @@ -237,7 +236,7 @@ export default {
// ref: https://atomiks.github.io/tippyjs/v6/all-props/
this.popup = tippy('.page', {
getReferenceClientRect: () => boundingClientRect,
getReferenceClientRect: () => node.getBoundingClientRect(),
appendTo: () => document.body,
interactive: true,
sticky: true, // make sure position of tippy is updated when content changes
Expand Down

0 comments on commit ab14704

Please sign in to comment.