MenuBar: Menu Icon in mobile view is shown even though there are no items in model #12084
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
While the menu bar handles empty or NULL values for
[model]
gracefully in normal situations, once switched to the mobile view (max-width <= 960px
) a menu-icon is shown no matter what.It is confusing to a user if the menu bar shows this menu-icon and even displays a menu stub on click but no content is rendered.
Environment
Default / standard
Reproducer
https://stackblitz.com/edit/github-lcf9ws
Angular version
14.2.1
PrimeNG version
14.1.2
Build / Runtime
Angular CLI App
Language
ALL
Node version (for AoT issues node --version)
16.16.0
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
When the model input on menubar is falsely or an empty array, the menu icon should never be visible.
The text was updated successfully, but these errors were encountered: