gd-bs 6.6.76 → 6.6.78
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
|
@@ -594,13 +594,13 @@ export class FormControl implements IFormControl {
|
|
|
594
594
|
|
|
595
595
|
// See if this is a checkbox
|
|
596
596
|
if (this._cb) {
|
|
597
|
-
// See if
|
|
598
|
-
if (
|
|
599
|
-
// Return the
|
|
597
|
+
// See if this is a multi-checkbox
|
|
598
|
+
if (this._props.type == FormControlTypes.MultiCheckbox || this._props.type == FormControlTypes.MultiRadio || this._props.type == FormControlTypes.MultiSwitch) {
|
|
599
|
+
// Return the selected items
|
|
600
600
|
return this._cb.getValue().selectedItems;
|
|
601
601
|
}
|
|
602
602
|
|
|
603
|
-
// Return
|
|
603
|
+
// Return a boolean
|
|
604
604
|
return this._cb.getValue().selectedItems ? true : false;
|
|
605
605
|
}
|
|
606
606
|
|
|
@@ -681,12 +681,6 @@ export class FormControl implements IFormControl {
|
|
|
681
681
|
let elControl = (this._cb || this._ddl || this._lb || this._tb) ? (this._cb || this._ddl || this._lb || this._tb).el : this._el;
|
|
682
682
|
let value = this.getValue();
|
|
683
683
|
|
|
684
|
-
// See if this is a checkbox
|
|
685
|
-
if(this._cb) {
|
|
686
|
-
// Update the value to the selected items
|
|
687
|
-
value = (value as ICheckboxGroupValue).selectedItems;
|
|
688
|
-
}
|
|
689
|
-
|
|
690
684
|
// See if this control is required
|
|
691
685
|
if (this._props.required) {
|
|
692
686
|
// See if a value doesn't exists
|