Commit 79bbd4c8 authored by Robert Knight's avatar Robert Knight

Add missing types for `focusTimer`

parent 8d814a2c
......@@ -32,7 +32,8 @@ export default function MenuKeyboardNavigation({
const menuRef = /** @type {{ current: HTMLDivElement }} */ (useRef());
useEffect(() => {
let focusTimer = null;
/** @type {number|undefined} */
let focusTimer;
if (visible) {
focusTimer = setTimeout(() => {
// The focus won't work without delaying rendering.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment