From 2716a203fc364bc5a3796042b33fc68941a2f5e9 Mon Sep 17 00:00:00 2001 From: Arjan Westdorp Date: Wed, 22 May 2019 11:10:26 +0200 Subject: [PATCH] Fix(snackbar): Check empty actionButtonText --- components/snackbar/Snackbar.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/snackbar/Snackbar.vue b/components/snackbar/Snackbar.vue index 81af59e23..667b86bb4 100644 --- a/components/snackbar/Snackbar.vue +++ b/components/snackbar/Snackbar.vue @@ -110,7 +110,7 @@ export default { this.model = this.mdcSnackbar.isOpen }, actionButtonText () { - this.mdcSnackbar.actionButtonText = this.actionButtonText + if (this.actionButtonText && this.actionButtonText !== '') this.mdcSnackbar.actionButtonText = this.actionButtonText }, labelText () { if (this.labelText && this.labelText !== '') this.mdcSnackbar.labelText = this.labelText @@ -127,7 +127,7 @@ export default { this.mdcSnackbar.timeoutMs = this.timeoutMs this.mdcSnackbar.closeOnEscape = this.closeOnEscape if (this.labelText && this.labelText !== '') this.mdcSnackbar.labelText = this.labelText - this.mdcSnackbar.actionButtonText = this.actionButtonText + if (this.actionButtonText && this.actionButtonText !== '') this.mdcSnackbar.actionButtonText = this.actionButtonText }, beforeDestroy () { this.mdcSnackbar.destroy()