Skip to content

Commit 0872c11

Browse files
authored
fix(DateField): change field with numbers keys in Firefox (#21)
1 parent f3fb48d commit 0872c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/DateField/hooks/useDateFieldProps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export function useDateFieldProps(
179179
onBeforeInput(e: React.FormEvent) {
180180
e.preventDefault();
181181
// @ts-expect-error
182-
const key = e.nativeEvent.data;
182+
const key = e.data;
183183
// eslint-disable-next-line no-eq-null, eqeqeq
184184
if (key != null) {
185185
state.onInput(key);

0 commit comments

Comments
 (0)