Skip to content

Commit fbe4b46

Browse files
committed
refactor: 更新脚本
1 parent 007007b commit fbe4b46

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/BootstrapBlazor/Components/Tab/Tab.razor.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ const resize = tab => {
1313
if (wrap.classList.contains('extend')) {
1414
return
1515
}
16+
17+
const link = wrap.querySelector('.nav-link-bar');
18+
if (link === null) {
19+
return;
20+
}
21+
1622
const scroll = tab.scroll
1723
const lastItem = [...tabNav.querySelectorAll('.tabs-item')].pop()
1824
if (lastItem) {

0 commit comments

Comments
 (0)