We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3360fde commit 68909b3Copy full SHA for 68909b3
src/Nav.js
@@ -157,7 +157,8 @@ class Nav extends React.Component {
157
158
getNextActiveChild(offset) {
159
const { children } = this.props;
160
- const validChildren = children.filter(
+ const validChildren = ValidComponentChildren.filter(
161
+ children,
162
child => child.props.eventKey != null && !child.props.disabled
163
);
164
const { activeKey, activeHref } = this.getActiveProps();
test/NavSpec.js
@@ -168,6 +168,7 @@ describe('<Nav>', () => {
168
NavItem 4 content
169
</NavItem>
170
<NavItem eventKey={5}>NavItem 5 content</NavItem>
171
+ {false && <NavItem eventKey={6}>NavItem 6 content</NavItem>}
172
</Nav>,
173
{ attachTo: mountPoint }
174
0 commit comments