Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
fix(snackbar): labelText is empty when using default slot as the labe…
Browse files Browse the repository at this point in the history
…l text (#240)
  • Loading branch information
tychenjiajun authored May 16, 2019
1 parent 087446d commit f0ddd6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/snackbar/Snackbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default {
this.mdcSnackbar.actionButtonText = this.actionButtonText
},
labelText () {
this.mdcSnackbar.labelText = this.labelText
if (this.labelText && this.labelText !== '') this.mdcSnackbar.labelText = this.labelText
},
closeOnEscape () {
this.mdcSnackbar.closeOnEscape = this.closeOnEscape
Expand All @@ -126,7 +126,7 @@ export default {
this.mdcSnackbar = MDCSnackbar.attachTo(this.$el)
this.mdcSnackbar.timeoutMs = this.timeoutMs
this.mdcSnackbar.closeOnEscape = this.closeOnEscape
this.mdcSnackbar.labelText = this.labelText
if (this.labelText && this.labelText !== '') this.mdcSnackbar.labelText = this.labelText
this.mdcSnackbar.actionButtonText = this.actionButtonText
},
beforeDestroy () {
Expand Down

0 comments on commit f0ddd6c

Please sign in to comment.