Skip to content
Snippets Groups Projects
Commit e1d1166f authored by Ron Lucke's avatar Ron Lucke Committed by Till Glöggler
Browse files

fix #1866

Closes #1866

Merge request studip/studip!1837
parent 4342db7c
No related branches found
No related tags found
No related merge requests found
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
return this.userIsTeacher; return this.userIsTeacher;
}, },
fallbackFocusElement(){ fallbackFocusElement(){
return this.$refs.tabs.getTabButtonByAlias(this.selectedToolbarItem); return this.$refs.contents;
} }
}, },
methods: { methods: {
...@@ -193,9 +193,10 @@ export default { ...@@ -193,9 +193,10 @@ export default {
} }
}, },
toolsActive(newValue) { toolsActive(newValue) {
if (newValue) { const focusElement = this.$refs.tabs.getTabButtonByAlias(this.selectedToolbarItem);
if (newValue && focusElement) {
setTimeout(() => { setTimeout(() => {
this.initialFocusElement = this.$refs.tabs.getTabButtonByAlias(this.selectedToolbarItem); this.initialFocusElement = focusElement;
this.trap = true; this.trap = true;
}, 300); }, 300);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment