We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 575e66b commit 650c33eCopy full SHA for 650c33e
app/javascript/controllers/better_together/tabs_controller.js
@@ -55,10 +55,10 @@ export default class extends Controller {
55
if (selectedTab.closest('.localized-fields')) break;
56
57
const tabTarget = this.element.querySelector(`${selectedTab.dataset.bsTarget}`);
58
- const tabPanes = this.element.querySelectorAll('.tab-pane');
+ const tabPanes = this.element.querySelectorAll('.nav-tab-pane');
59
60
- this.tabTargets.forEach((pane) => {
61
- pane.classList.remove('active');
+ this.tabTargets.forEach((tab) => {
+ tab.classList.remove('active');
62
});
63
selectedTab.classList.add('active');
64
0 commit comments