Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: disable months/year menu options where applicable (#9846)

01zulfi8048c90a89ee
diff --git a/apps/web/src/components/day-picker/index.tsx b/apps/web/src/components/day-picker/index.tsx
index dd28672c2..d9004ccf3 100644
--- a/apps/web/src/components/day-picker/index.tsx
+++ b/apps/web/src/components/day-picker/index.tsx
@@ -93,6 +93,7 @@ export function DayPicker(props: DayPickerProps) {
key={month.month + year}
value={month.month}
data-date={month.$date.toDateString()}
+ disabled={month.disabled}
>
{month.month}
</option>
@@ -121,6 +122,7 @@ export function DayPicker(props: DayPickerProps) {
key={year.year}
value={year.year}
data-date={year.$date.toDateString()}
+ disabled={year.disabled}
>
{year.year}
</option>