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 c91be35 commit f65b43eCopy full SHA for f65b43e
1 file changed
src/form/field/CheckBox.mjs
@@ -456,14 +456,19 @@ class CheckBox extends Base {
456
*/
457
getGroupValue() {
458
let form = this.getClosestForm(),
459
- fields = ComponentManager.find({path: this.getPath()}),
460
- value = [];
+ path = this.getPath(),
+ value = [],
461
+ fields;
462
- fields.forEach(field => {
463
- if (field.checked && field.getClosestForm() === form) {
464
- NeoArray.add(value, field.value)
465
- }
466
- });
+ if (path) {
+ fields = ComponentManager.find({path});
+
+ fields.forEach(field => {
467
+ if (field.checked && field.getClosestForm() === form) {
468
+ NeoArray.add(value, field.value)
469
+ }
470
+ })
471
472
473
return value
474
}
0 commit comments