Skip to content

Commit

Permalink
revert 1194be5
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Aug 6, 2018
1 parent 1920941 commit c046cfb
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,6 @@ export default class Tabs extends React.Component {
}
}

// Prevent focus to make the Tabs scroll offset
// https://github.com/ant-design/ant-design/issues/11261
onScroll = ({ target }) => {
if (target.scrollLeft > 0) {
target.scrollLeft = 0;

if (document.activeElement) {
document.activeElement.blur();
}
}
};

setActiveKey = (activeKey) => {
if (this.state.activeKey !== activeKey) {
if (!('activeKey' in this.props)) {
Expand Down Expand Up @@ -170,7 +158,6 @@ export default class Tabs extends React.Component {
className={cls}
style={props.style}
{...getDataAttr(restProps)}
onScroll={this.onScroll}
>
{contents}
</div>
Expand Down

0 comments on commit c046cfb

Please sign in to comment.