Skip to content

Commit b1018fb

Browse files
VdustRmarcosmoura
authored andcommitted
fix(MdTooltip): mdActive never updated to true using .sync modifier
`mdActive` was never updated to true via `.sync` before
1 parent 3113749 commit b1018fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/MdTooltip/MdTooltip.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,16 @@
5555
watch: {
5656
mdActive () {
5757
this.shouldRender = this.mdActive
58+
},
59+
shouldRender (shouldRender) {
60+
this.$emit('update:mdActive', shouldRender)
5861
}
5962
},
6063
methods: {
6164
show () {
6265
this.shouldRender = true
6366
},
6467
hide () {
65-
this.$emit('update:mdActive', false)
6668
this.shouldRender = false
6769
}
6870
},

0 commit comments

Comments
 (0)