@paperless/angular 2.0.1-beta.170 → 2.0.1-beta.171
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.
- package/esm2020/lib/directives/p-field.directive.mjs +3 -10
- package/fesm2015/paperless-angular.mjs +2 -9
- package/fesm2015/paperless-angular.mjs.map +1 -1
- package/fesm2020/paperless-angular.mjs +2 -9
- package/fesm2020/paperless-angular.mjs.map +1 -1
- package/lib/directives/p-field.directive.d.ts +0 -1
- package/package.json +1 -1
|
@@ -360,16 +360,9 @@ class FieldDirective extends BaseValueAccessor {
|
|
|
360
360
|
constructor(el) {
|
|
361
361
|
super(el);
|
|
362
362
|
}
|
|
363
|
-
handleChangeEvent(value) {
|
|
364
|
-
console.log(this.lastValue, value);
|
|
365
|
-
this.lastValue = value;
|
|
366
|
-
this.onChange(value);
|
|
367
|
-
}
|
|
368
363
|
writeValue(value) {
|
|
369
|
-
value =
|
|
370
|
-
|
|
371
|
-
this.el.nativeElement.value = value;
|
|
372
|
-
this.lastValue = value;
|
|
364
|
+
this.el.nativeElement.value = this.lastValue =
|
|
365
|
+
value === null ? JSON.parse(value) : value;
|
|
373
366
|
}
|
|
374
367
|
}
|
|
375
368
|
FieldDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FieldDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|