menubar (hamburger)close when click <li>

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
cldmanno
Posts: 4
Joined: 01 Mar 2022, 18:33

18 May 2022, 17:40

hi, i am using primeblocks menubar
when i am in smartphone mode (hamburger) when i click on a menu item i want the menu to close
can you tell me what i need to implement
thank you,
Claudio

cetincakiroglu
Posts: 130
Joined: 17 Dec 2021, 09:33

23 May 2022, 15:15

Hi,

Since there is no wrapper for layout it inherits 64px min height of menubar as a layout height. Because of that menu does not appear except one item. Try to use a wrapper as in the example below;

Code: Select all

<div style="height:50rem;">
..... rest of your code above
</div>
Important reminder: PrimeBlocks are commercial licenced products. Please do not share your code in public, therefore I'll remove the code you've shared.

Regards

Post Reply

Return to “PrimeBlocks for PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests