chrv-components 1.11.94 → 1.11.95

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
@@ -1067,7 +1067,9 @@ class ChrBaseInputComponent {
1067
1067
  // The Behavior Subject always has an initial value. Which means that subscribing to it will make it look like the input has a new value (initially null).
1068
1068
  // Which is false, because we're only instanciating the object. This is why we need to skip the first value. Otherwise the form will receive a random null when this
1069
1069
  // observable is subscribed to and set the value to said null.
1070
- skip(1), debounceTime(this.debounceTime() ?? 200), distinctUntilChanged())
1070
+ skip(1), debounceTime(this.debounceTime() ?? 200)
1071
+ //distinctUntilChanged()
1072
+ )
1071
1073
  .subscribe((res) => {
1072
1074
  // If the value is an empty string, set the value to null to trigger validation and prevent an inconsitent value to be set (ex: for number type input)
1073
1075
  let value = typeof res === 'string' && res.trim() === '' ? null : res;
@@ -1358,9 +1360,9 @@ class ChrSearchSelectComponent extends ChrBaseInputComponent {
1358
1360
  // We need to avoid setting it when the value is set to null because it would
1359
1361
  // Remove the user's input a few milliseconds after he starts typing to replace a value
1360
1362
  this.displayValueSubject.subscribe((v) => {
1361
- //if (v !== null && v !== undefined) {
1362
- this.displayValue.set(v);
1363
- //}
1363
+ if (v !== null && v !== undefined) {
1364
+ this.displayValue.set(v);
1365
+ }
1364
1366
  });
1365
1367
  // Value subject is not initially called with the default value or the set value of the formcontrol
1366
1368
  // this.displayValue.set(this.value());