Skip to content

Commit

Permalink
Merge pull request #1954 from jsyrjala/master
Browse files Browse the repository at this point in the history
[ToolbarGroup] Allow putting strings inside
  • Loading branch information
oliviertassinari committed Oct 23, 2015
2 parents a18f08b + 41f7477 commit 2c18cd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/toolbar/toolbar-group.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ const ToolbarGroup = React.createClass({
if (!currentChild) {
return null;
}
if (!currentChild.type) {
return currentChild;
}
switch (currentChild.type.displayName) {
case 'DropDownMenu' :
return React.cloneElement(currentChild, {
Expand Down

0 comments on commit 2c18cd7

Please sign in to comment.