Merge branch 'develop' into develop

This commit is contained in:
Heiko Carrasco 2020-11-18 20:14:25 +01:00 committed by GitHub
commit 3fd13b89b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
280 changed files with 13047 additions and 4366 deletions

View file

@ -205,7 +205,7 @@ export const RovingTabIndexProvider: React.FC<IProps> = ({children, handleHomeEn
// onFocus should be called when the index gained focus in any manner
// isActive should be used to set tabIndex in a manner such as `tabIndex={isActive ? 0 : -1}`
// ref should be passed to a DOM node which will be used for DOM compareDocumentPosition
export const useRovingTabIndex = (inputRef: Ref): [FocusHandler, boolean, Ref] => {
export const useRovingTabIndex = (inputRef?: Ref): [FocusHandler, boolean, Ref] => {
const context = useContext(RovingTabIndexContext);
let ref = useRef<HTMLElement>(null);