Skip to content
Permalink
Browse files

fix(MdTooltip): `mdActive` never updated to true using `.sync` modifier

`mdActive` was never updated to true via `.sync` before
  • Loading branch information...
VdustR authored and marcosmoura committed Jan 29, 2018
1 parent 3113749 commit b1018fb5575dd92ced0a658ec97473863d5cf965
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/components/MdTooltip/MdTooltip.vue
@@ -55,14 +55,16 @@
watch: {
mdActive () {
this.shouldRender = this.mdActive
},
shouldRender (shouldRender) {
this.$emit('update:mdActive', shouldRender)
}
},
methods: {
show () {
this.shouldRender = true
},
hide () {
this.$emit('update:mdActive', false)
this.shouldRender = false
}
},

0 comments on commit b1018fb

Please sign in to comment.
You can’t perform that action at this time.