Skip to content

Commit fe3219a

Browse files
cPecicanlvostinar
authored andcommitted
SVY-19741 Invalid date issue - update
1 parent 3ea34ef commit fe3219a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

projects/bootstrapcomponents/src/calendar/calendar.ts

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

156-
if (event !== '' && ((this.minDate && this.minDate > event) || (this.maxDate && this.maxDate < event))) {
156+
if ((event !== '' && ((this.minDate && this.minDate > event) || (this.maxDate && this.maxDate < event))) ||
157+
/* 2024.12 fix */
158+
event === undefined ||
159+
/* lts_latest fix */
160+
event.toString() === 'Invalid Date') {
157161
// revert to old value
158162
this.svyFormat.writeValue(this.dataProviderID);
159163
}

0 commit comments

Comments
 (0)