diff --git a/packages/tooltip/src/main.js b/packages/tooltip/src/main.js index dc930ec58d4..235bbc39bc0 100644 --- a/packages/tooltip/src/main.js +++ b/packages/tooltip/src/main.js @@ -69,6 +69,22 @@ export default { data: { node: '' }, render(h) { return this.node; + }, + updated() { + if (this.showPopper && this.popperJS) { + this.$nextTick(() => { + this.updatePopper(); + }); + } + }, + watch: { + node() { + if (this.showPopper && this.popperJS) { + this.$nextTick(() => { + this.updatePopper(); + }); + } + } } }).$mount(); @@ -239,4 +255,4 @@ export default { off(reference, 'click', this.removeFocusing); } } -}; +}; \ No newline at end of file