iamhosseindhv / notistack

Highly customizable notification snackbars (toasts) that can be stacked on top of each other
https://notistack.com
Other
3.93k stars 298 forks source link

domRoot is ineffective #577

Open chen2938 opened 1 year ago

chen2938 commented 1 year ago

Expected Behavior

https://github.com/iamhosseindhv/notistack/issues/493

I found this issue, but it seems that there are no code examples available on the official website. After setting the domRoot attribute using useRef, it still use document. body as the benchmark. Can you provide an example of how to customize relative positions on the official website?

Current Behavior

Steps to Reproduce

Link:

1. 2. 3. 4.

Context

Your Environment

Tech Version
Notistack v3.0.2
React 17.0.2
Browser
etc.
chen2938 commented 1 year ago

image Is it a problem with my usage?

chen2938 commented 1 year ago

https://codesandbox.io/s/loving-joliot-6mz9vw Here is an example of how to use it

eddiew commented 4 months ago

I am experiencing this issue also