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 abf739e commit 38ccebbCopy full SHA for 38ccebb
force-app/main/default/lwc/checkboxGroup/checkboxGroup.js
@@ -83,12 +83,10 @@ export default class CheckboxGroup extends LightningElement {
83
checkValidity() {
84
if(this._customValidityErrorMsg && !this.readOnly) {
85
this._validity = false;
86
+ } else if(this.required && !this.readOnly) {
87
+ this._validity = this._checkboxes.reduce((acc, cb) => acc || cb.checked, false);
88
} else {
89
this._validity = true;
-
- if(this.required && !this.readOnly) {
90
- this._validity &= this._checkboxes.reduce((acc, cb) => acc || cb.checked, false);
91
- }
92
}
93
94
return this._validity;
0 commit comments