Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Commit

Permalink
fix(overflow): use React.Children.toArray to discard null values (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdhanaraj authored and hellobrian committed Jul 13, 2017
1 parent d4ee34f commit 6bbaa39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/OverflowMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class OverflowMenu extends Component {
iconClass
);

const childrenWithProps = React.Children.map(children, child =>
const childrenWithProps = React.Children.toArray(children).map(child =>
React.cloneElement(child, {
closeMenu: this.closeMenu,
})
Expand Down

0 comments on commit 6bbaa39

Please sign in to comment.