Skip to content

Commit

Permalink
fix(tabs): classname error. close #904
Browse files Browse the repository at this point in the history
  • Loading branch information
paranoidjk committed Feb 28, 2017
1 parent 4a39497 commit a0f43fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/tabs/index.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import TabsProps from './PropsType';
import SwipeableTabContent from 'rc-tabs/lib/SwipeableTabContent';
import TabContent from 'rc-tabs/lib/TabContent';
import InkTabBar from 'rc-tabs/lib/InkTabBar';
import assign from 'object-assign';

const Tabs = React.createClass<TabsProps, any>({
statics: {
Expand Down Expand Up @@ -94,6 +93,7 @@ const Tabs = React.createClass<TabsProps, any>({
const cls = className({
[`${this.props.prefixCls}-leftpage`]: totalTabsCount > 5 && viewportStartTabIndex > 0,
[`${this.props.prefixCls}-rightpage`]: totalTabsCount > 5 && viewportStartTabIndex + 4 < totalTabsCount - 1,
[this.props.className]: this.props.className,
});
return cls;
},
Expand All @@ -103,7 +103,7 @@ const Tabs = React.createClass<TabsProps, any>({
...this.props,
onChange: this.handleTabChange,
children: this.getChildren(),
className: assign(this.getClassName(), this.props.className),
className: this.getClassName(),
};
return (
<RcTabs
Expand Down

0 comments on commit a0f43fd

Please sign in to comment.