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 36b35ad commit 449a6dbCopy full SHA for 449a6db
packages/react-datetime-picker/src/DateTimeInput.tsx
@@ -243,7 +243,7 @@ export default function DateTimeInput({
243
const minuteInput = useRef<HTMLInputElement>(null);
244
const secondInput = useRef<HTMLInputElement>(null);
245
const [isWidgetOpen, setIsWidgetOpenOpen] = useState(isWidgetOpenProps);
246
- const lastPressedKey = useRef<KeyboardEvent['key']>();
+ const lastPressedKey = useRef<KeyboardEvent['key'] | undefined>(undefined);
247
248
useEffect(() => {
249
setIsWidgetOpenOpen(isWidgetOpenProps);
0 commit comments