Skip to content
Snippets Groups Projects
Commit 54b43da8 authored by B. Sc Pius Gyamenah's avatar B. Sc Pius Gyamenah :speech_balloon: Committed by Ron Lucke
Browse files

Biest #1168

Closes #1058

Merge request studip/studip!900
parent aa214d36
No related branches found
No related tags found
No related merge requests found
<template> <template>
<focus-trap v-model="trap" :initial-focus="() => initialFocusElement" :clickOutsideDeactivates="true"> <focus-trap v-model="trap" :initial-focus="() => initialFocusElement" :clickOutsideDeactivates="true" :fallbackFocus ="() => fallbackFocusElement">
<div <div
class="cw-ribbon-tools" class="cw-ribbon-tools"
:class="{ unfold: toolsActive, 'cw-ribbon-tools-consume': consumeMode }" :class="{ unfold: toolsActive, 'cw-ribbon-tools-consume': consumeMode }"
...@@ -137,6 +137,9 @@ export default { ...@@ -137,6 +137,9 @@ export default {
isTeacher() { isTeacher() {
return this.userIsTeacher; return this.userIsTeacher;
}, },
fallbackFocusElement(){
return this.$refs.tabs.getTabButtonByAlias(this.selectedToolbarItem);
}
}, },
methods: { methods: {
...mapActions({ ...mapActions({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment