You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I render my snackbar component it gets stuck inside the story container instead of being rendered on the bottom right of the page. Is there an approach to this issue?
I tried moving the SnackbarViewport (renderer) in the DOM directly under the body, but it's not working. The viewport element is correctly found, but moving it causes this error: Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Hey,
When I render my snackbar component it gets stuck inside the story container instead of being rendered on the bottom right of the page. Is there an approach to this issue?
I tried moving the SnackbarViewport (renderer) in the DOM directly under the
body
, but it's not working. Theviewport
element is correctly found, but moving it causes this error:Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
Any help would be greatly appreciated,
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions