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.
@@ -594,12 +594,12 @@ var FormControl = /** @class */ (function () {
594
594
  }
595
595
  // See if this is a checkbox
596
596
  if (this._cb) {
597
- // See if the items were defined
598
- if (this._props.items) {
599
- // Return the value(s)
597
+ // See if this is a multi-checkbox
598
+ if (this._props.type == _1.FormControlTypes.MultiCheckbox || this._props.type == _1.FormControlTypes.MultiRadio || this._props.type == _1.FormControlTypes.MultiSwitch) {
599
+ // Return the selected items
600
600
  return this._cb.getValue().selectedItems;
601
601
  }
602
- // Return the value
602
+ // Return a boolean
603
603
  return this._cb.getValue().selectedItems ? true : false;
604
604
  }
605
605
  // See if this is a dropdown
@@ -676,11 +676,6 @@ var FormControl = /** @class */ (function () {
676
676
  // Get the element and value
677
677
  var elControl = (this._cb || this._ddl || this._lb || this._tb) ? (this._cb || this._ddl || this._lb || this._tb).el : this._el;
678
678
  var value = this.getValue();
679
- // See if this is a checkbox
680
- if (this._cb) {
681
- // Update the value to the selected items
682
- value = value.selectedItems;
683
- }
684
679
  // See if this control is required
685
680
  if (this._props.required) {
686
681
  // See if a value doesn't exists