gd-bs 6.6.34 → 6.6.35

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.6.34",
3
+ "version": "6.6.35",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -528,8 +528,11 @@ export class FormControl implements IFormControl {
528
528
  // See if there is a custom type
529
529
  let custom = CustomControls.getByType(this._props.type);
530
530
  if (custom && typeof (custom) === "function") {
531
+ // Set the default value
532
+ this._props.value = this._props.value || value;
533
+
531
534
  // Execute the event
532
- this._custom = custom({ ...this._props, ...{ value } }, this._formProps);
535
+ this._custom = custom(this._props, this._formProps);
533
536
  }
534
537
  break;
535
538
  }