iterate spaces treeview stuff

This commit is contained in:
Michael Telatynski 2021-08-09 14:01:34 +01:00
parent 09f20bcda7
commit 0f49fe92c6
5 changed files with 57 additions and 46 deletions

View file

@ -196,7 +196,7 @@ export const RovingTabIndexProvider: React.FC<IProps> = ({ children, handleHomeE
handled = true;
if (context.state.refs.length > 0) {
const idx = context.state.refs.indexOf(context.state.activeRef);
if (idx > 1) {
if (idx > 0) {
context.state.refs[idx - 1].current.focus();
}
}