Topbar Menu stays active/open

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
nboukeras
Posts: 2
Joined: 06 Apr 2016, 10:55

25 May 2022, 01:47

Hi,

Has anyone faced an issue with using the topbar settings menu where if you use one of item's href the menu doesn't close when you navigate to that page. I had a look through other topics in the Poseidon section of the forum and couldn't find anyone else reporting it.

I created a loginsettings.xhtml page which can be navigated to from the Login Settings link in the topbar menu. When I go on to that page the topbar menu opens and stays open. I added the same href link to the topbar-item user-profile > Settings and that menu opens and doesn't close when on loginsettings.xhtml.

Any help from stopping this from happening would be greatly appreciated.

Thanks,

Nacim

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

03 Jun 2022, 00:00

Hi,

Could you please make the following change in layout.js?

Code: Select all

// line 419
restoreMenuState: function () {
        var link = $('.layout-menu a[href^="' + this.cfg.pathname + '"]');       /* instead of $('a[href^="' + this.cfg.pathname + '"]'); */
        var $this = this;
        if (link.length) {
            ...
 ...

nboukeras
Posts: 2
Joined: 06 Apr 2016, 10:55

07 Jul 2022, 15:18

Hi Mert,

That worked perfectly!! Thank you so much.

Thanks,

Nacim

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

08 Jul 2022, 10:30

Thanks a lot for your update! I've fixed it for the next version.

Best Regards,

Post Reply

Return to “Poseidon - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests