Skip to content

Commit

Permalink
fix(MdTooltip): mdActive never updated to true using .sync modifier
Browse files Browse the repository at this point in the history
`mdActive` was never updated to true via `.sync` before
  • Loading branch information
VdustR authored and marcosmoura committed Jan 29, 2018
1 parent 3113749 commit b1018fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/MdTooltip/MdTooltip.vue
Expand Up @@ -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
}
},
Expand Down

0 comments on commit b1018fb

Please sign in to comment.