chrv-components 1.10.20 → 1.10.22

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.
Binary file
@@ -1281,9 +1281,7 @@ class ChrTagSelectComponent extends ChrBaseInputComponent {
1281
1281
  const res = this.editCallback(entry, this.editSubject);
1282
1282
  //If the callback returns null, we remove the value.
1283
1283
  if (res === null && this.value !== null) {
1284
- this.value = this.value?.filter((v) => v != entry);
1285
- this.removeCallback?.(entry);
1286
- return this.onValueChange(this.value);
1284
+ this.remove(entry);
1287
1285
  }
1288
1286
  //If the callback returns a different value (different by reference (ex: different object)), we replace the edited entry by the returned entry.
1289
1287
  // if (entry != res) {
@@ -2189,7 +2187,7 @@ class ChrFormComponent {
2189
2187
  if (Object.hasOwn(this.model, control.name)) {
2190
2188
  this.model[control.name] = value;
2191
2189
  //Dispatch the whole model change event
2192
- this.modelChange.emit({ ...this.model });
2190
+ this.modelChange.emit(this.model);
2193
2191
  }
2194
2192
  // Whether or not there is a matching property in the model, we update the local values
2195
2193
  this.values[control.name] = value;