Skip to content

Commit

Permalink
fix: remove tab code from pill js
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda committed Jul 15, 2024
1 parent 7e4f888 commit 3aa0d9a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/scripts/pill-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,3 @@ function hideAllTab() {
allTab.classList.remove("show");
allTab.classList.remove("active");
}

if (window.location.hash.startsWith("#pills")) {
const triggerEl = document.querySelector("button[data-bs-target='" + window.location.hash + "']");
bootstrap.Tab.getInstance(triggerEl).show(); // Select tab by name
}

0 comments on commit 3aa0d9a

Please sign in to comment.