fix useCallback dependencies, delint
This commit is contained in:
parent
2c6fe78012
commit
37fb500e22
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ export const RovingTabIndexProvider = ({children, handleHomeEnd, onKeyDown}) =>
|
||||||
} else if (onKeyDown) {
|
} else if (onKeyDown) {
|
||||||
return onKeyDown(ev);
|
return onKeyDown(ev);
|
||||||
}
|
}
|
||||||
}, [context.state]);
|
}, [context.state, onKeyDown, handleHomeEnd]);
|
||||||
|
|
||||||
return <RovingTabIndexContext.Provider value={context}>
|
return <RovingTabIndexContext.Provider value={context}>
|
||||||
{ children({onKeyDownHandler}) }
|
{ children({onKeyDownHandler}) }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue