We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ba97ea commit 52ede8cCopy full SHA for 52ede8c
src/AbstractMenu.js
@@ -94,7 +94,7 @@ export default class AbstractMenu extends Component {
94
return;
95
}
96
97
- if ([MenuItem, this.getSubMenuType()].indexOf(child.type) < 0) {
+ if ([MenuItem, this.getSubMenuType()].indexOf(child.type) < 0 && child.props.children instanceof Object) {
98
// Maybe the MenuItem or SubMenu is capsuled in a wrapper div or something else
99
React.Children.forEach(child.props.children, childCollector);
100
} else if (!child.props.divider) {
0 commit comments