gd-bs 6.6.69 → 6.6.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
IFormControlPropsDropdown, IFormControlPropsDropdownButton, IFormControlPropsDropdownCheckbox,
|
|
4
4
|
IFormControlPropsListBox, IFormControlPropsMultiCheckbox,
|
|
5
5
|
IFormControlPropsMultiDropdown, IFormControlPropsMultiDropdownButton, IFormControlPropsMultiDropdownCheckbox,
|
|
6
|
-
IFormControlPropsMultiListBox,
|
|
6
|
+
IFormControlPropsMultiListBox,
|
|
7
7
|
IFormControlPropsRange, IFormControlPropsTextField, IFormControlValidationResult
|
|
8
8
|
} from "./controlTypes";
|
|
9
|
-
import { ICheckboxGroup } from "../checkboxGroup/types";
|
|
9
|
+
import { ICheckboxGroup, ICheckboxGroupValue } from "../checkboxGroup/types";
|
|
10
10
|
import { IDropdown } from "../dropdown/types";
|
|
11
11
|
import { IInputGroup } from "../inputGroup/types";
|
|
12
12
|
import { IListBox } from "../listBox/types";
|
|
@@ -693,6 +693,11 @@ export class FormControl implements IFormControl {
|
|
|
693
693
|
// Set the flag
|
|
694
694
|
validation.isValid = value.length > 0;
|
|
695
695
|
}
|
|
696
|
+
// Else, see if this is a checkbox
|
|
697
|
+
else if (this._cb) {
|
|
698
|
+
// Set the flag
|
|
699
|
+
validation.isValid = (value as ICheckboxGroupValue).selectedItems ? true : false;
|
|
700
|
+
}
|
|
696
701
|
}
|
|
697
702
|
|
|
698
703
|
// See if an event exists
|