question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

[Popover] Don't hide scrollbar

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary šŸ’”

In the documentation, it is written: ā€œThe scroll and click away are blocked unlike with the Popper component.ā€. But why? Why not allowing to unlock the scrollbar as it is the case for Select, Menu, Dialog, etcā€¦?

You will say me: ā€œuse the popperā€. I can do it, but the popper misses a lot of features that the popover has (escape key & click away).

Moreover, Google alreadys uses Popover that doesnā€™t block the scrollbar:

image

So it would be nice if there is a way to not block the scrollbar on Popover (this is the only that prevents me to use it everytime I want to use it).

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
nikossoftwaredevcommented, Jul 9, 2020

Use disableScrollLock prop and with Styles root: { position: ā€˜absolute !importantā€™, },

0reactions
oliviertassinaricommented, Jul 9, 2020

I canā€™t find the direct duplicate, letā€™s keep it open so we donā€™t forget.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Popover] Don't hide scrollbar Ā· Issue #18898 Ā· mui/material-ui
After investigation, Google prevents scrolling when subscribe popover is opened without hiding the scrollbar. I think they do something like:.
Read more >
Material UI - Unblock scrolling when popover is opened
The property you are looking for is called disableScrollLock . But using this, does not recalculate the modals positioningĀ ...
Read more >
Appearance of scroll bars when opening popover
The workaround is to give the popover no border, or to position the fields so that they do not overlap the popover's border....
Read more >
How to prevent Body from scrolling when a modal is opened ...
Approach: A simple solution to this problem is to set the value of the ā€œoverflowā€ property of the body element to ā€œhiddenā€ whenever...
Read more >
Popover Usage - ServiceNow Developers
Types. Popover panels can have a tail or no tail, as outlined below. ... When the content exceeds the maximum height of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found