@paperless/angular 0.1.0-alpha.407 → 0.1.0-alpha.409
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.
|
@@ -259,8 +259,7 @@ class DatepickerDirective extends BaseValueAccessor {
|
|
|
259
259
|
super(el);
|
|
260
260
|
}
|
|
261
261
|
writeValue(value) {
|
|
262
|
-
|
|
263
|
-
this.el.nativeElement.value = this.lastValue = value;
|
|
262
|
+
this.el.nativeElement.value = this.lastValue = value === null ? JSON.parse(value) : value;
|
|
264
263
|
}
|
|
265
264
|
}
|
|
266
265
|
DatepickerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DatepickerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|