Skip to content

Commit

Permalink
Fix primefaces#3190: Menubar mobile view hamburger menu (primefaces#3191
Browse files Browse the repository at this point in the history
)

* Fix primefaces#3190: Menubar mobile view

* Null check for model

Co-authored-by: Melloware <[email protected]>
  • Loading branch information
gucal and melloware authored Aug 27, 2022
1 parent 614628f commit 3e18881
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/lib/menubar/Menubar.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export const Menubar = React.memo(
};

const createMenuButton = () => {
if (props.model && props.model.length < 1) {
return null;
}
/* eslint-disable */
const button = (
<a ref={menuButtonRef} href={'#'} role="button" tabIndex={0} className="p-menubar-button" onClick={toggle}>
Expand Down

0 comments on commit 3e18881

Please sign in to comment.