refactoring

This commit is contained in:
Philipp Kühn
2021-01-19 12:28:33 +01:00
parent 214f25a0ae
commit 6b517a47ef
4 changed files with 5 additions and 24 deletions

View File

@@ -46,7 +46,7 @@ export default {
})
popup = tippy('body', {
getReferenceClientRect: () => props.virtualNode.getBoundingClientRect(),
getReferenceClientRect: () => props.clientRect,
appendTo: () => document.body,
content: component.element,
showOnCreate: true,
@@ -59,7 +59,7 @@ export default {
component.updateProps(props)
popup[0].setProps({
getReferenceClientRect: () => props.virtualNode.getBoundingClientRect(),
getReferenceClientRect: () => props.clientRect,
})
},
onKeyDown(props) {