Fix date picker keyboard navigation regression (#6808)

This commit is contained in:
Matiss Janis Aboltins
2026-01-28 22:44:33 +01:00
committed by GitHub
parent f71249f510
commit d8b7e45aaa
2 changed files with 10 additions and 2 deletions

View File

@@ -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 (

View File

@@ -0,0 +1,6 @@
---
category: Bugfixes
authors: [MatissJanis]
---
Fix keyboard navigation not working on desktop datepicker