@@ -17,13 +17,15 @@ export class ServoyBootstrapBaseCalendar extends ServoyBootstrapBasefield<HTMLDi
1717 readonly maxDateChange = output ( ) ;
1818 readonly minDate = input < Date > ( undefined ) ;
1919 readonly minDateChange = output ( ) ;
20- readonly keepInvalid = signal < boolean > ( undefined ) ;
20+ readonly keepInvalid = input < boolean > ( undefined ) ;
2121 readonly keepInvalidChange = output < boolean > ( ) ;
2222
2323 readonly calendarWeeks = input < boolean > ( undefined ) ;
2424 readonly theme = input < string > ( undefined ) ;
2525
2626 readonly options = input < Options > ( undefined ) ;
27+
28+ _keepInvalid = signal < boolean > ( undefined ) ;
2729
2830 picker : TempusDominus ;
2931
@@ -125,8 +127,11 @@ export class ServoyBootstrapBaseCalendar extends ServoyBootstrapBasefield<HTMLDi
125127 }
126128 }
127129
128- if ( changes . keepInvalid && changes . keepInvalid . currentValue !== undefined )
130+ if ( changes . keepInvalid && changes . keepInvalid . currentValue !== undefined ) {
129131 this . config . keepInvalid = changes . keepInvalid . currentValue ;
132+ this . _keepInvalid . set ( changes . keepInvalid . currentValue ) ;
133+ }
134+
130135 if ( this . picker && ( changes . calendarWeeks || changes . minDate || changes . options
131136 || changes . maxDate || changes . disabledDays || changes . disabledDates ) ) this . picker . updateOptions ( this . config ) ;
132137 }
@@ -189,7 +194,7 @@ export class ServoyBootstrapBaseCalendar extends ServoyBootstrapBasefield<HTMLDi
189194 private checkInvalidAndPicker ( keepInvalid : boolean ) {
190195 if ( keepInvalid !== undefined ) {
191196 this . config . keepInvalid = keepInvalid ;
192- this . keepInvalid . set ( keepInvalid ) ;
197+ this . _keepInvalid . set ( keepInvalid ) ;
193198 this . keepInvalidChange . emit ( keepInvalid ) ;
194199 }
195200 if ( this . picker ) this . picker . updateOptions ( this . config ) ;
0 commit comments