You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val overlapDate = selection.firstOrNull { config.disabledDates?.contains(it) ==true }
68
+
overlapDate?.let { throwIllegalStateException("Please correct your setup. Your selection overlaps with a provided disabled date. $it") }
69
+
70
+
val today =LocalDate.now()
71
+
when (config.disabledTimeline) {
72
+
CalendarTimeline.PAST-> {
73
+
val overlapTimelineDate = selection.firstOrNull { it.isBefore(today) }
74
+
overlapTimelineDate?.let { throwIllegalStateException("Please correct your setup. Your selection overlaps with the disabled timeline. ${config.disabledTimeline}") }
75
+
}
76
+
CalendarTimeline.FUTURE-> {
77
+
val overlapTimelineDate = selection.firstOrNull { it.isAfter(today) }
78
+
overlapTimelineDate?.let { throwIllegalStateException("Please correct your setup. Your selection overlaps with the disabled timeline. ${config.disabledTimeline}") }
0 commit comments