M
M
Max2021-12-20 14:41:27
JavaScript
Max, 2021-12-20 14:41:27

How to use Popover from Material-UI so that it is always open and does not block the window/scroll/other?

I'm using Popover from Material-UI, but I need it to be initially and always hit the DOM, because open={true}, but when it opens it blocks the window/scroll/other. How to avoid it.

I want it to be always open and show and rip it via CSS.

<Popover
          ref={popoverRef}
          open
          anchorEl={anchorEl}
          anchorOrigin={{
            vertical: 'top',
            horizontal: 'right',
          }}
        >
          <div></div>
        </Popover>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-12-20
@Seasle

<Popover open={open} disableScrollLock>...</Popover>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question