Skip to content
Snippets Groups Projects
Commit 7fa6be28 authored by Ron Lucke's avatar Ron Lucke Committed by Jan-Hendrik Willms
Browse files

fix #1866

Closes #1866

Merge request studip/studip!1837
parent ba4c8faf
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ export default {
return this.userIsTeacher;
},
fallbackFocusElement(){
return this.$refs.tabs.getTabButtonByAlias(this.selectedToolbarItem);
return this.$refs.contents;
}
},
methods: {
......@@ -192,9 +192,10 @@ export default {
}
},
toolsActive(newValue) {
if (newValue) {
const focusElement = this.$refs.tabs.getTabButtonByAlias(this.selectedToolbarItem);
if (newValue && focusElement) {
setTimeout(() => {
this.initialFocusElement = this.$refs.tabs.getTabButtonByAlias(this.selectedToolbarItem);
this.initialFocusElement = focusElement;
this.trap = true;
}, 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