@acpaas-ui/ngx-forms 6.1.2 → 6.1.6
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/components/datepicker/datepicker.component.mjs +5 -2
- package/fesm2015/acpaas-ui-ngx-forms.mjs +4 -1
- package/fesm2015/acpaas-ui-ngx-forms.mjs.map +1 -1
- package/fesm2020/acpaas-ui-ngx-forms.mjs +4 -1
- package/fesm2020/acpaas-ui-ngx-forms.mjs.map +1 -1
- package/package.json +6 -6
|
@@ -483,7 +483,10 @@ class DatepickerComponent {
|
|
|
483
483
|
const date = DateHelper.parseDate(format, 'yyyy-MM-dd');
|
|
484
484
|
if (date) {
|
|
485
485
|
this.selectedDate = date;
|
|
486
|
-
|
|
486
|
+
const year = date.getFullYear();
|
|
487
|
+
const month = date.getMonth();
|
|
488
|
+
const day = date.getDate();
|
|
489
|
+
this.onChange(DateHelper.toUtcMidnightInBrussels(year, month, day));
|
|
487
490
|
}
|
|
488
491
|
else {
|
|
489
492
|
// Change value with original value (and not null or '') so we can add an error in the validate function
|