Skip to content

Commit

Permalink
chore: Mobile support bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Jun 8, 2020
1 parent 36df617 commit 30e6274
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ function Tabs(
value: id,
});

const mergedTabPosition = mobile ? 'top' : tabPosition;
let mergedTabPosition = tabPosition;
if (mobile && !['left', 'right'].includes(tabPosition)) {
mergedTabPosition = 'top';
}

// Async generate id to avoid ssr mapping failed
useEffect(() => {
Expand Down

0 comments on commit 30e6274

Please sign in to comment.