fix useCallback dependencies, delint

pull/21833/head
Michael Telatynski 2020-01-22 10:41:10 +00:00
parent 2c6fe78012
commit 37fb500e22
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ export const RovingTabIndexProvider = ({children, handleHomeEnd, onKeyDown}) =>
} else if (onKeyDown) {
return onKeyDown(ev);
}
}, [context.state]);
}, [context.state, onKeyDown, handleHomeEnd]);
return <RovingTabIndexContext.Provider value={context}>
{ children({onKeyDownHandler}) }