Skip to content

Commit 942a658

Browse files
committed
fix(accordion-button): add default attr.type=button
1 parent ce73a5e commit 942a658

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ export class AccordionButtonDirective {
1111
*/
1212
@Input() collapsed!: boolean;
1313

14+
/**
15+
* Default type for cAccordionButton. [docs]
16+
* @type string
17+
* @default 'button'
18+
*/
19+
@HostBinding('attr.type')
20+
@Input() type = 'button';
21+
1422
@HostBinding('class')
1523
get hostClasses(): any {
1624
return {

0 commit comments

Comments
 (0)