Skip to content

Commit

Permalink
Resolve bug with tabs not switching
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethbruskiewicz committed Oct 29, 2024
1 parent b66e63c commit 796c9d3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions web/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import $ from 'jquery';
import * as $ from 'jquery';
// NOTE: do NOT import bootstrap proper – interaction with other events
// just import the precise libraries you need from it
import 'bootstrap/js/dist/tab';
import 'bootstrap/dist/css/bootstrap.min.css';

import { initI18n } from '@/lib/utils/i18n';
import { Template } from '@/lib/utils/templates';
import { getGettingStartedMarkup } from '@/lib/toolbarGettingStarted';
import { Footer, Toolbar, AppContext } from '@/lib';

// NOTE: do NOT import bootstrap proper – interaction with other events
// just import the precise libraries you need from it
import 'bootstrap/js/dist/tab';
import 'bootstrap/dist/css/bootstrap.min.css';

// Order matters: place this at bottom of imports for CSS overrides
import '@/web/index.css';

Expand Down Expand Up @@ -41,7 +40,8 @@ export function createDataHarmonizerTab(dhId, entity, isActive) {
dhTabLink.id = `tab-${dhId}`;
dhTabLink.href = `#${dhId}`;
dhTabLink.textContent = entity;
dhTabLink.setAttribute('data-bs-toggle', 'tab'); // Bootstrap specific data attribute for tabs
dhTabLink.dataset.toggle = 'tab';
dhTabLink.setAttribute('data-bs-toggle', 'tab'); // Bootstrap specific data attribute for tabs
dhTabLink.setAttribute('data-bs-target', dhTabLink.href);
dhTabLink.setAttribute('role', 'tab');
dhTabLink.setAttribute('aria-controls', dhId);
Expand Down

0 comments on commit 796c9d3

Please sign in to comment.