Panics · P30 Calendar: views and recurrences stay inside jiff's range, the editor refuses edits past it

This commit is contained in:
ZacharyZhang-NY committed 2026-10-07 03:54:07 -04:00
1 parent a284c71e92
commit 8a0344d2c4
11 files changed
+238 -82

No files matched your search

+7 -4
View File
@@ -354,9 +354,10 @@ impl RenderOnce for CalendarMonthView {
Rc::new(move |by, window, cx| {
let day = match by {
0 => today,
by => at
.checked_add(by.months())
.expect("a month lies on either side"),
by => match super::stepped(at, by.months(), "calendar month view") {
Some(day) => day,
None => return,
},
};
pick(day, window, cx)
})
@@ -381,7 +382,9 @@ impl RenderOnce for CalendarMonthView {
_ => return,
};
cx.stop_propagation();
pick(at.checked_add(by).expect("a day nearby"), window, cx)
if let Some(day) = super::stepped(at, by, "calendar month view") {
pick(day, window, cx)
}
}
};
let theme = cx.theme();