Skip to content

Commit d121940

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

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
@@ -132,7 +132,7 @@ export class ServoyBootstrapCalendar extends ServoyBootstrapBaseCalendar {
132132
super.pushUpdate();
133133
}
134134

135-
if ((event !== '' && ((this.minDate && this.minDate > event) || (this.maxDate && this.maxDate < event))) || !this.isValidDate(event)) {
135+
if (event !== '' && ((this.minDate && this.minDate > event) || (this.maxDate && this.maxDate < event) || !this.isValidDate(event))) {
136136
// revert to old value
137137
this.svyFormat.writeValue(this.dataProviderID);
138138
}

0 commit comments

Comments
 (0)