Skip to content

Commit

Permalink
Merge pull request #1124 from Rainson12/fix-panelmenu-icon
Browse files Browse the repository at this point in the history
Fixed #1121 - PanelMenu show an icon when property is set
  • Loading branch information
mertsincan authored Jan 17, 2020
2 parents 98742ba + e927977 commit bce0c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/panelmenu/PanelMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export class PanelMenu extends Component {
renderPanelIcon(item) {
const className = classNames('p-menuitem-icon', item.icon);

if (item.items) {
if (item.icon) {
return (
<span className={className}></span>
);
Expand Down

0 comments on commit bce0c08

Please sign in to comment.