diff --git a/components/snackbar/Snackbar.vue b/components/snackbar/Snackbar.vue index 9273ddeb9..81af59e23 100644 --- a/components/snackbar/Snackbar.vue +++ b/components/snackbar/Snackbar.vue @@ -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 @@ -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 () {