We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1eef8d commit bbe7877Copy full SHA for bbe7877
projects/igniteui-angular/directives/src/directives/checkbox/checkbox-base.directive.ts
@@ -283,9 +283,12 @@ export class CheckboxBaseDirective implements AfterViewInit {
283
*/
284
@Input({ transform: booleanAttribute })
285
public get required(): boolean {
286
- return this._required;
+ return this._required || this.nativeElement.hasAttribute('required');
287
}
288
public set required(value: boolean) {
289
+ if (!value) {
290
+ this.nativeElement.removeAttribute('required');
291
+ }
292
this._required = value;
293
294
0 commit comments