From e0b2b1d34a9f4e7978485012779ee71e731ae44d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 4 Apr 2023 15:47:09 +0300 Subject: [PATCH] Fixed #3836 - Button: icon only support for default templating --- components/lib/button/Button.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/button/Button.vue b/components/lib/button/Button.vue index a60cececc..69760e546 100755 --- a/components/lib/button/Button.vue +++ b/components/lib/button/Button.vue @@ -85,7 +85,7 @@ export default { return [ 'p-button p-component', { - 'p-button-icon-only': this.icon && !this.label, + 'p-button-icon-only': (this.icon && !this.label) || this.$slots.default, 'p-button-vertical': (this.iconPos === 'top' || this.iconPos === 'bottom') && this.label, 'p-disabled': this.$attrs.disabled || this.loading, 'p-button-loading': this.loading,