Skip to content

Commit a6620c4

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

projects/bootstrapcomponents/src/calendar/calendar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export class ServoyBootstrapCalendar extends ServoyBootstrapBaseCalendar {
153153
super.pushUpdate();
154154
}
155155

156-
if ((event !== '' && ((this.minDate && this.minDate > event) || (this.maxDate && this.maxDate < event))) || !this.isValidDate(event)) {
156+
if (event !== '' && ((this.minDate && this.minDate > event) || (this.maxDate && this.maxDate < event) || !this.isValidDate(event))) {
157157
// revert to old value
158158
this.svyFormat.writeValue(this.dataProviderID);
159159
}

0 commit comments

Comments
 (0)