Skip to content

Commit a60ed74

Browse files
committed
SVY-20592 Date Picker shows Invalid DateTime
fix date validation logic when date is deleted
1 parent 6e558b6 commit a60ed74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • components/projects/bootstrapcomponents/src/calendar

components/projects/bootstrapcomponents/src/calendar/calendar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class ServoyBootstrapCalendar extends ServoyBootstrapBaseCalendar {
137137
super.pushUpdate();
138138
}
139139

140-
if ((event !== '' && ((this.minDate && this.minDate > event) || (this.maxDate && this.maxDate < event))) || !this.isValidDate(event)) {
140+
if (event !== '' && ((this.minDate && this.minDate > event) || (this.maxDate && this.maxDate < event) || !this.isValidDate(event))) {
141141
// revert to old value
142142
this.svyFormat.writeValue(this.dataProviderID);
143143
}

0 commit comments

Comments
 (0)