@skyux/datetime 6.6.0 → 6.7.0
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/documentation.json +5 -5
- package/esm2020/lib/modules/datepicker/datepicker-input.directive.mjs +5 -1
- package/fesm2015/skyux-datetime.mjs +4 -0
- package/fesm2015/skyux-datetime.mjs.map +1 -1
- package/fesm2020/skyux-datetime.mjs +4 -0
- package/fesm2020/skyux-datetime.mjs.map +1 -1
- package/package.json +8 -8
@@ -2882,6 +2882,10 @@ class SkyDatepickerInputDirective {
|
|
2882
2882
|
validate(control) {
|
2883
2883
|
if (!this.control) {
|
2884
2884
|
this.control = control;
|
2885
|
+
// Account for any date conversion that may have occurred prior to validation.
|
2886
|
+
if (this.control.value !== this.value) {
|
2887
|
+
this.control.patchValue(this.value, { emitEvent: false });
|
2888
|
+
}
|
2885
2889
|
}
|
2886
2890
|
if (this.skyDatepickerNoValidate) {
|
2887
2891
|
return;
|