Skip to content

Commit

Permalink
re-init tabs on order edit page
Browse files Browse the repository at this point in the history
  • Loading branch information
i-just committed Nov 9, 2023
1 parent d6cf88a commit 5f31ae1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/web/assets/commerceui/src/js/order/apps/OrderActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@
}
});
// re-init the tabs after hiding the non-static ones
// see: https://github.com/craftcms/cms/issues/13911 for more details
Craft.cp.initTabs();
// For custom tabs, if the selected tab is dynamic, find corresponding static tab and select it instead.
const $selectedTabLink = window.document.querySelector(
'#tabs a.custom-tab.sel'
Expand Down

0 comments on commit 5f31ae1

Please sign in to comment.