Skip to content

Commit 4739866

Browse files
cdervclaude
andcommitted
Log debug message on tab activation failure instead of silently swallowing
Replace empty catch block with console.debug so Bootstrap Tab API failures leave a diagnostic breadcrumb. Also add explicit format: html to search-tabsets test fixture for consistency. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent dd8df56 commit 4739866

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/resources/projects/website/search/quarto-search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ function activateTabsWithMatches(mainEl) {
11781178
try {
11791179
new bootstrap.Tab(tabButton).show();
11801180
} catch (e) {
1181-
// Skip this tab if Bootstrap Tab API fails
1181+
console.debug("Failed to activate tab for search match:", e);
11821182
}
11831183
}
11841184
}

tests/docs/playwright/html/search-tabsets/_quarto.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ website:
77
left:
88
- href: index.qmd
99
text: Home
10+
11+
format: html

0 commit comments

Comments
 (0)