Skip to content

Commit 4ebcc85

Browse files
[6.x] Ensure sidebar tab is only active when sidebar area is hidden (#13501)
1 parent e93cbb0 commit 4ebcc85

File tree

1 file changed

+9
-0
lines changed
  • resources/js/components/ui/Publish

1 file changed

+9
-0
lines changed

resources/js/components/ui/Publish/Tabs.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ function setActiveTabFromHash() {
5959
setActive(window.location.hash.substr(1));
6060
}
6161
62+
watch(
63+
() => shouldShowSidebar.value,
64+
() => {
65+
if (shouldShowSidebar.value && activeTab.value === 'sidebar') {
66+
setActive(visibleMainTabs.value[0].handle);
67+
}
68+
}
69+
);
70+
6271
watch(
6372
() => activeTab.value,
6473
(tab) => {

0 commit comments

Comments
 (0)