Skip to content

Commit 30e6274

Browse files
committed
chore: Mobile support bottom
ref ant-design/ant-design#24831
1 parent 36df617 commit 30e6274

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Tabs.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ function Tabs(
157157
value: id,
158158
});
159159

160-
const mergedTabPosition = mobile ? 'top' : tabPosition;
160+
let mergedTabPosition = tabPosition;
161+
if (mobile && !['left', 'right'].includes(tabPosition)) {
162+
mergedTabPosition = 'top';
163+
}
161164

162165
// Async generate id to avoid ssr mapping failed
163166
useEffect(() => {

0 commit comments

Comments
 (0)