|
@@ -57,7 +57,9 @@
|
|
|
mounted() {
|
|
|
this.referenceElm = this.$parent.$refs.reference.$el;
|
|
|
this.$parent.popperElm = this.popperElm = this.$el;
|
|
|
- this.$on('updatePopper', this.updatePopper);
|
|
|
+ this.$on('updatePopper', () => {
|
|
|
+ if (this.$parent.visible) this.updatePopper();
|
|
|
+ });
|
|
|
this.$on('destroyPopper', this.destroyPopper);
|
|
|
}
|
|
|
};
|