Skip to content

Commit

Permalink
fix(DateField): change field with numbers keys in Firefox (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeraS authored Nov 20, 2023
1 parent f3fb48d commit 0872c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DateField/hooks/useDateFieldProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export function useDateFieldProps(
onBeforeInput(e: React.FormEvent) {
e.preventDefault();
// @ts-expect-error
const key = e.nativeEvent.data;
const key = e.data;
// eslint-disable-next-line no-eq-null, eqeqeq
if (key != null) {
state.onInput(key);
Expand Down

0 comments on commit 0872c11

Please sign in to comment.