Skip to content

Commit

Permalink
fix(button): added default button type
Browse files Browse the repository at this point in the history
Closes: #355
  • Loading branch information
AntoninoBonanno authored and astagi committed Jul 12, 2024
1 parent 6327e76 commit ea19950
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea19950

Please sign in to comment.