Skip to content

Commit 42982af

Browse files
authored
fix(tabs): dropdown show (#6758)
1 parent 8140f9e commit 42982af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/tabs/src/TabNavList/OperationNode.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export default defineComponent({
144144
rtl,
145145
onTabClick,
146146
} = props;
147+
if (!tabs.length) return null;
147148
const dropdownPrefix = `${prefixCls}-dropdown`;
148149

149150
const dropdownAriaLabel = locale?.dropdownAriaLabel;

0 commit comments

Comments
 (0)