@sebgroup/green-angular 3.5.1 → 3.5.2
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/datepicker/datepicker.component.mjs +4 -1
- package/fesm2015/sebgroup-green-angular.mjs +3 -0
- package/fesm2015/sebgroup-green-angular.mjs.map +1 -1
- package/fesm2020/sebgroup-green-angular.mjs +3 -0
- package/fesm2020/sebgroup-green-angular.mjs.map +1 -1
- package/lib/datepicker/datepicker.component.d.ts +1 -1
- package/package.json +2 -2
|
@@ -428,6 +428,9 @@ class NggDatepickerComponent {
|
|
|
428
428
|
return this._value;
|
|
429
429
|
}
|
|
430
430
|
set value(newValue) {
|
|
431
|
+
if (typeof newValue === 'string') {
|
|
432
|
+
newValue = new Date(newValue);
|
|
433
|
+
}
|
|
431
434
|
if (newValue !== this._value) {
|
|
432
435
|
this._value = newValue || undefined;
|
|
433
436
|
}
|