@db-ux/ngx-core-components 3.0.7 → 3.0.8-empty-custom-select-315e030

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.
@@ -3403,6 +3403,14 @@ class DBCustomSelect {
3403
3403
  this.values() !== this._values()) {
3404
3404
  this._values.set(this.values() ?? []);
3405
3405
  }
3406
+ else if (this.values() === null ||
3407
+ this.values() === undefined ||
3408
+ (Array.isArray(this.values()) && this.values()?.length === 0)) {
3409
+ // Handle the case where props.values is empty/null/undefined
3410
+ // but state._values may still contain items that need to be cleared
3411
+ // This fixes issues with form validation libraries that reset values
3412
+ this._values.set([]);
3413
+ }
3406
3414
  }, {
3407
3415
  // Enable writing to signals inside effects
3408
3416
  });