From d2b0ba357ecdf2ea77b192a74e2014ef536600ff Mon Sep 17 00:00:00 2001
From: MisRob
Date: Fri, 3 Mar 2023 10:16:49 +0100
Subject: [PATCH] Focus the active tab when tabs are mounted
See https://github.com/learningequality/kolibri/issues/10113
---
kolibri/plugins/coach/assets/src/views/plan/PlanHeader.vue | 7 +++++++
.../coach/assets/src/views/reports/ReportsHeader.vue | 7 +++++++
2 files changed, 14 insertions(+)
diff --git a/kolibri/plugins/coach/assets/src/views/plan/PlanHeader.vue b/kolibri/plugins/coach/assets/src/views/plan/PlanHeader.vue
index bf0cb755ee5..3c969b3f6c6 100644
--- a/kolibri/plugins/coach/assets/src/views/plan/PlanHeader.vue
+++ b/kolibri/plugins/coach/assets/src/views/plan/PlanHeader.vue
@@ -12,6 +12,7 @@
{{ $tr('planYourClassDescription') }}
{
+ this.$refs.tabsList.focusActiveTab();
+ });
+ },
$trs: {
planYourClassLabel: {
message: 'Plan your class',
diff --git a/kolibri/plugins/coach/assets/src/views/reports/ReportsHeader.vue b/kolibri/plugins/coach/assets/src/views/reports/ReportsHeader.vue
index f1590d58c6e..2d24f27010d 100644
--- a/kolibri/plugins/coach/assets/src/views/reports/ReportsHeader.vue
+++ b/kolibri/plugins/coach/assets/src/views/reports/ReportsHeader.vue
@@ -14,6 +14,7 @@
{
+ this.$refs.tabsList.focusActiveTab();
+ });
+ },
$trs: {
description: {
message: 'View reports for your learners and class materials',