[Tab] Auto-activate doesn't check siblings, breaks individual tab definitions #1014
Labels
lang/javascript
Anything involving JavaScript
type/bug
Any issue which is a bug or PR which fixes a bug
Milestone
Bug Report
Steps to reproduce
Expected result
Individual tab should update without affecting the other tab members in the menu.
Actual result
Last modified tab gets set as the 'active' tab in the menu regardless of actual state.
Testcase
Demonstration:
https://jsfiddle.net/spj408zw/
Proposed solution
Modify line 697 on tab.js from:
$anchor = $allModules.filter('[data-' + metadata.tab + '="' + module.escape.string(tabPath) + '"]')
To:
$anchor = $allModules.siblings().filter('[data-' + metadata.tab + '="' + module.escape.string(tabPath) + '"]')
Worst case scenario, roll back #977 as it introduces issues that were not present before.
Caused by
#977
Version
2.7.8
The text was updated successfully, but these errors were encountered: