Skip to content

Commit 146e6b5

Browse files
committed
fix(button): add HostBinding('attr.type')
1 parent 942a658 commit 146e6b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

projects/coreui-angular/src/lib/button/button.directive.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export class ButtonDirective {
5858
* Specifies the type of button. Always specify the type attribute for the `<button>` element.
5959
* Different browsers may use different default types for the `<button>` element.
6060
*/
61+
@HostBinding('attr.type')
6162
@Input() type: ButtonType = 'button';
6263
/**
6364
* Set the button variant to an outlined button or a ghost button.

0 commit comments

Comments
 (0)