Skip to content

Commit

Permalink
fix(Tab): should not listen to extra keyboard events
Browse files Browse the repository at this point in the history
  • Loading branch information
guanpu committed May 19, 2019
1 parent f6a46c0 commit 50e1699
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/tab/tabs/nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,11 @@ class Nav extends React.Component {
const tabList = this.renderTabList(this.props);

const container = (
<div className={containerCls} key="nav-container">
<div
className={containerCls}
onKeyDown={onKeyDown}
key="nav-container"
>
<div
className={`${prefix}tabs-nav-wrap`}
ref={this.wrapperRefHandler}
Expand Down Expand Up @@ -670,7 +674,6 @@ class Nav extends React.Component {
<div
className={navbarCls}
style={style}
onKeyDown={onKeyDown}
ref={this.navbarRefHandler}
>
{navChildren}
Expand Down

0 comments on commit 50e1699

Please sign in to comment.