From ea1995042dba4e882698300c08065d72330d6443 Mon Sep 17 00:00:00 2001 From: Antonino Bonanno Date: Sun, 7 Jul 2024 16:04:34 +0200 Subject: [PATCH] fix(button): added default button type Closes: #355 --- .../lib/components/core/button/button.directive.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/projects/design-angular-kit/src/lib/components/core/button/button.directive.ts b/projects/design-angular-kit/src/lib/components/core/button/button.directive.ts index 1170379a..9ef1dd7d 100644 --- a/projects/design-angular-kit/src/lib/components/core/button/button.directive.ts +++ b/projects/design-angular-kit/src/lib/components/core/button/button.directive.ts @@ -36,7 +36,17 @@ export class ItButtonDirective { * If button is disabled * @default false */ - @Input({ transform: inputToBoolean }) @HostBinding('disabled') disabled?: boolean; + @Input({ transform: inputToBoolean }) + @HostBinding('disabled') + disabled?: boolean; + + /** + * The type attribute + * @default button + */ + @Input() + @HostBinding('type') + type: 'button' | 'reset' | 'submit' = 'button'; /** * The icon children