4

I'm using mmenu context menu (comes from the bottom of the screen) on a list. when i'm scrolling down the page, and then fires the menu, on the open action the page is scrolled to the top. How can I avoid the scrolling?

Thanks

Shahar
  • 541
  • 2
  • 7
  • 22

1 Answers1

2

You probably have height: 100% set on your body element. As stated in the docs,

  1. Don't set a height on the HTML.

If you need a DIV to be (at least) 100% height, use

#my-div {
   height: 100vh;
}

This fixed the issue for me.

mbain
  • 158
  • 7