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 0835f97 commit d90f8c0Copy full SHA for d90f8c0
packages/react-time-picker/src/TimeInput.tsx
@@ -159,7 +159,7 @@ export default function TimeInput({
159
const minuteInput = useRef<HTMLInputElement>(null);
160
const secondInput = useRef<HTMLInputElement>(null);
161
const [isClockOpen, setIsClockOpen] = useState(isClockOpenProps);
162
- const lastPressedKey = useRef<KeyboardEvent['key']>();
+ const lastPressedKey = useRef<KeyboardEvent['key'] | undefined>(undefined);
163
164
useEffect(() => {
165
setIsClockOpen(isClockOpenProps);
0 commit comments