Skip to content

A local-first personal finance app

Fix date picker keyboard navigation regression (#6808)

Matiss Janis Aboltinsd8b7e45aaac1
diff --git a/packages/desktop-client/src/components/select/DateSelect.tsx b/packages/desktop-client/src/components/select/DateSelect.tsx
index b525357a4e..e975271031 100644
--- a/packages/desktop-client/src/components/select/DateSelect.tsx
+++ b/packages/desktop-client/src/components/select/DateSelect.tsx
@@ -173,7 +173,8 @@ const DatePicker = forwardRef<DatePickerForwardedRef, DatePickerProps>(
}
},
}),
- [onUpdate],
+ // oxlint-disable-next-line react-hooks/exhaustive-deps
+ [],
);
useLayoutEffect(() => {
@@ -316,7 +317,8 @@ function DateSelectDesktop({
setSelectedValue(value);
}
}
- }, [value, onUpdate, dateFormat]);
+ // oxlint-disable-next-line react-hooks/exhaustive-deps
+ }, [value, dateFormat]);
function onKeyDown(e: KeyboardEvent<HTMLInputElement>) {
if (
diff --git a/upcoming-release-notes/6808.md b/upcoming-release-notes/6808.md
new file mode 100644
index 0000000000..cfe06119f2
--- /dev/null
+++ b/upcoming-release-notes/6808.md
@@ -0,0 +1,6 @@
+---
+category: Bugfixes
+authors: [MatissJanis]
+---
+
+Fix keyboard navigation not working on desktop datepicker