@paperless/angular 2.22.0-alpha.41 → 2.22.0-alpha.42
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.
|
@@ -276,10 +276,11 @@ class BaseValueAccessor {
|
|
|
276
276
|
this.el.nativeElement.value = this.lastValue = value == null ? '' : value;
|
|
277
277
|
}
|
|
278
278
|
handleChangeEvent(value) {
|
|
279
|
-
if (value
|
|
280
|
-
|
|
281
|
-
this.onChange(value);
|
|
279
|
+
if (value === this.lastValue) {
|
|
280
|
+
return;
|
|
282
281
|
}
|
|
282
|
+
this.lastValue = value;
|
|
283
|
+
this.onChange(value);
|
|
283
284
|
}
|
|
284
285
|
registerOnChange(fn) {
|
|
285
286
|
this.onChange = fn;
|
|
@@ -443,10 +444,11 @@ class BaseNumberValueAccessor extends NumberValueAccessor {
|
|
|
443
444
|
super.writeValue(value);
|
|
444
445
|
}
|
|
445
446
|
handleChangeEvent(value) {
|
|
446
|
-
if (value
|
|
447
|
-
|
|
448
|
-
this.onChange(value);
|
|
447
|
+
if (value === this.lastValue) {
|
|
448
|
+
return;
|
|
449
449
|
}
|
|
450
|
+
this.lastValue = value;
|
|
451
|
+
this.onChange(value);
|
|
450
452
|
}
|
|
451
453
|
_handleBlurEvent() {
|
|
452
454
|
this.onTouched();
|