[BUG] Scroll Focus on Vertical Menu Bar

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
Dragday
Posts: 8
Joined: 09 Jul 2019, 14:52

08 Aug 2019, 15:22

When changing routes, the scroll focus stay on the vertical menu bar.

It is replicable on the demo. Just change the menu bar to vertical, and change page. If you try to scroll down it won't work until you click anywhere on the page itself.

Is there any way to fix it?

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

09 Aug 2019, 10:53

Hi,
Thank you for your feedback. We fixed for next release but you can add the below code in app.menu.component.ts(line 258) file until release;
(AppSubMenuComponent > itemclick function > if(!item.items))

Code: Select all

// hide menu
 if (!item.items) {
      if (!this.app.horizontal) {
             this.app.menuActive = false;
             this.app.unblockBodyScroll();		//you need to add only this line
       }
  //other codes
}

Dragday
Posts: 8
Joined: 09 Jul 2019, 14:52

12 Aug 2019, 15:27

Thank you.
I subscribed to the router changes and unblocked when it changed. Will try your solution.

Post Reply

Return to “Sapphire - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests