Skip to content

Commit aa65987

Browse files
committedMar 22, 2022
fix(FormCheckInput): add missinh attr.type binding
1 parent 79b21c3 commit aa65987

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎projects/coreui-angular/src/lib/form/form-check/form-check-input.directive.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export class FormCheckInputDirective {
1313
* @type {'checkbox' | 'radio'}
1414
* @default 'checkbox'
1515
*/
16-
@Input() type: 'checkbox' | 'radio' = 'checkbox';
16+
@HostBinding('attr.type')
17+
@Input() type: ('checkbox' | 'radio') = 'checkbox';
1718

1819
/**
1920
* Set component indeterminate state.
@@ -27,11 +28,9 @@ export class FormCheckInputDirective {
2728
this.renderer.setProperty(this.hostElement.nativeElement, 'indeterminate', newValue);
2829
}
2930
};
30-
3131
get indeterminate() {
3232
return this._indeterminate;
3333
}
34-
3534
private _indeterminate = false;
3635

3736
/**
@@ -42,7 +41,6 @@ export class FormCheckInputDirective {
4241

4342
@HostBinding('class')
4443
get hostClasses(): any {
45-
4644
return {
4745
'form-check-input': true,
4846
'is-valid': this.valid === true,

0 commit comments

Comments
 (0)
Please sign in to comment.