We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3fb48d commit 0872c11Copy full SHA for 0872c11
src/components/DateField/hooks/useDateFieldProps.ts
@@ -179,7 +179,7 @@ export function useDateFieldProps(
179
onBeforeInput(e: React.FormEvent) {
180
e.preventDefault();
181
// @ts-expect-error
182
- const key = e.nativeEvent.data;
+ const key = e.data;
183
// eslint-disable-next-line no-eq-null, eqeqeq
184
if (key != null) {
185
state.onInput(key);
0 commit comments