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
Loading
......@@ -126,7 +126,7 @@ export default {
return this.userIsTeacher;
},
fallbackFocusElement(){
return this.$refs.tabs.getTabButtonByAlias(this.selectedToolbarItem);
return this.$refs.contents;
}
},
methods: {
......@@ -193,9 +193,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.
Please register or to comment