From fb356b769463b70f6227eabbf54a69ccfed50797 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Thu, 17 Sep 2020 22:23:32 +0300 Subject: [PATCH] Get disabled from $attrs --- src/components/button/Button.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/button/Button.vue b/src/components/button/Button.vue index c9879ce96..ac3ddb215 100755 --- a/src/components/button/Button.vue +++ b/src/components/button/Button.vue @@ -29,10 +29,6 @@ export default { badgeClass: { type: String, default: null - }, - disabled: { - type: Boolean, - default: null } }, computed: { @@ -41,7 +37,7 @@ export default { 'p-button p-component': true, 'p-button-icon-only': this.icon && !this.label, 'p-button-vertical': (this.iconPos === 'top' || this.iconPos === 'bottom') && this.label, - 'p-disabled': this.disabled + 'p-disabled': this.$attrs.disabled } }, iconClass() {