Page 1 of 1

hideOnOutsideClick in navbar for Tablet/Mobile View does not work

Posted: 14 Jul 2022, 20:24
by tjohnsen
Hello - in reference to the Primeblocks navigation code - is there anyway to get the "hideOnOutsideClick" to work in the smaller width, when it operates as a drop down

Issue -

Go to https://www.primefaces.org/primeblocks- ... ion/navbar
Minimize the screen so the menu style changes to drop down
Open sub menu drop down
Click on another menu item
DropDown remains open from previous selection and does not close

Is there anyway to close the menu that is not active - this works in full mode

Re: hideOnOutsideClick in navbar for Tablet/Mobile View does not work

Posted: 18 Jul 2022, 11:25
by mert.sincan
Thanks a lot for the feedback! I'll talk about it with our team and get back to you.

Best Regards,

Re: hideOnOutsideClick in navbar for Tablet/Mobile View does not work

Posted: 22 Jul 2022, 09:21
by Nargzul
Hi,
I've the same kind of issue. I'm not sure why, but it seems to work on the PrimeBlock "Dim Sidebar with Topbar" block, but once I copied the code, I can't manage to make it work with my code, the menu just doesn't close. Is there something to declare somewhere?

Re: hideOnOutsideClick in navbar for Tablet/Mobile View does not work

Posted: 03 Oct 2022, 13:54
by habubey
Hello,
If you are still facing the issue with "Dim Sidebar with Topbar" or any Blocks please let us know.
We are gladly happy to assist you.

Re: hideOnOutsideClick in navbar for Tablet/Mobile View does not work

Posted: 03 Oct 2022, 13:56
by Nargzul
I solved the issue. It appears that the code provided(when you can click on "copy") for this demo is not the same as the real code used

Re: hideOnOutsideClick in navbar for Tablet/Mobile View does not work

Posted: 03 Oct 2022, 14:03
by habubey
Thank you for your response, glad to hear that!

Re: hideOnOutsideClick in navbar for Tablet/Mobile View does not work

Posted: 09 Jan 2023, 11:42
by jaguar32
Nargzusl wrote:
23 Jun 2495, 20:55
Hi,
I've the same kind of issue. I'm not sure why, but it seems to work on the PrimeBlock "Dim Sidebar with Topbar" block, but once I copied the code, I can't manage to make it work with my code, the menu just doesn't close. Is there something to declare somewhere?
Get started with the dropdown component to show a list of menu items when clicking on the trigger element based on multiple layouts, styles, and placements