gd-bs 6.6.70 → 6.6.71

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.
@@ -676,6 +676,11 @@ 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
+ }
679
684
  // See if this control is required
680
685
  if (this._props.required) {
681
686
  // See if a value doesn't exists
@@ -688,11 +693,6 @@ var FormControl = /** @class */ (function () {
688
693
  // Set the flag
689
694
  validation.isValid = value.length > 0;
690
695
  }
691
- // Else, see if this is a checkbox
692
- else if (this._cb) {
693
- // Set the flag
694
- validation.isValid = value.selectedItems ? true : false;
695
- }
696
696
  }
697
697
  // See if an event exists
698
698
  if (this._props.onValidate) {