Permalink
Browse files

fix: drop className for tabBar, fix #12051

  • Loading branch information...
picodoth authored and afc163 committed Sep 6, 2018
1 parent f0f44c6 commit 589bafd5db92a817c078ead6decdb81e64b2b5a8
Showing with 5 additions and 3 deletions.
  1. +2 −2 components/card/__tests__/__snapshots__/demo.test.js.snap
  2. +3 −1 components/tabs/index.tsx
@@ -811,7 +811,7 @@ exports[`renders ./components/card/demo/tabs.md correctly 1`] = `
class="ant-tabs ant-tabs-top ant-card-head-tabs ant-tabs-large ant-tabs-line"
>
<div
class="ant-tabs-bar ant-card-head-tabs"
class="ant-tabs-bar"
role="tablist"
tabindex="0"
>
@@ -946,7 +946,7 @@ exports[`renders ./components/card/demo/tabs.md correctly 1`] = `
class="ant-tabs ant-tabs-top ant-card-head-tabs ant-tabs-large ant-tabs-line"
>
<div
class="ant-tabs-bar ant-card-head-tabs"
class="ant-tabs-bar"
role="tablist"
tabindex="0"
>
@@ -158,12 +158,14 @@ export default class Tabs extends React.Component<TabsProps, any> {
</div>
) : null;
const { className: dropped, ...tabBarProps } = this.props;
return (
<RcTabs
{...this.props}
className={cls}
tabBarPosition={tabPosition}
renderTabBar={() => <TabBar {...this.props} tabBarExtraContent={tabBarExtraContent}/>}
renderTabBar={() => <TabBar {...tabBarProps} tabBarExtraContent={tabBarExtraContent}/>}
renderTabContent={() => <TabContent animated={tabPaneAnimated} animatedWithMargin />}
onChange={this.handleChange}
>

0 comments on commit 589bafd

Please sign in to comment.