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

Fix(snackbar): labelText is empty when using default slot as the labal text #240

Merged
merged 3 commits into from
May 16, 2019
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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