Skip to content

Commit 97afa64

Browse files
committed
enable picking a date with enter key
1 parent af51756 commit 97afa64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/lib-components/molecules/date-picker/DatePickerLowLevel.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ export default React.memo(function DatePickerLowLevel({
154154
(e: React.KeyboardEvent) => {
155155
if (e.key === 'Esc' || e.key === 'Escape' || e.key === 'Enter') {
156156
e.stopPropagation()
157+
if (e.key === 'Enter' && !(e.target instanceof HTMLInputElement)) {
158+
return
159+
}
157160
showDatePickerOff()
158161
}
159162
},

0 commit comments

Comments
 (0)