chrv-components 1.11.93 → 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)
|
|
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;
|