Skip to content

Commit

Permalink
Allow putting strings inside <ToolbarGroup>.
Browse files Browse the repository at this point in the history
Fixes mui#1953
  • Loading branch information
jsyrjala authored and JorgenEvens committed Nov 3, 2015
1 parent 1098b59 commit 915ccbb
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 915ccbb

Please sign in to comment.