Skip to content
Snippets Groups Projects
Commit 24e47eb6 authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

Update popover.js

parent 84a69f95
No related branches found
No related tags found
No related merge requests found
const Popover = {
name: 'Popover',
props: {
......@@ -31,7 +30,7 @@ const Popover = {
},
methods: {
containerBoundingClientRect () {
const container = this.boundToSelector ? document.querySelector(this.boundToSelector) : this.$el.offsetParent
const container = this.boundToSelector ? this.$el.closest(this.boundToSelector) : this.$el.offsetParent
return container.getBoundingClientRect()
},
updateStyles () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment