Skip to content
Snippets Groups Projects
Commit 87de2200 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

resurrect lost method in courseware tabs component, fixes #4975

Closes #4975

Merge request studip/studip!3734
parent de4159a0
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,9 @@ export default {
break;
}
},
getActiveTabElement() {
return this.$refs['tabnav' + this.activeTab][0];
},
},
provide() {
return {
......
......@@ -85,7 +85,6 @@ export default {
context: 'context',
userById: 'users/byId',
userId: 'userId',
selectedToolbarItem: 'selectedToolbarItem',
currentElementisLink: 'currentElementisLink',
}),
isTeacher() {
......@@ -107,7 +106,7 @@ export default {
}
},
activate() {
const focusElement = this.$refs.tabs.getTabButtonByAlias(this.selectedToolbarItem);
const focusElement = this.$refs.tabs.getActiveTabElement();
if (focusElement) {
this.initialFocusElement = focusElement;
this.trap = true;
......
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