react-new-window
react-new-window copied to clipboard
Opening Modals in the new window
I am facing an issue when working with modal in my components. When the child components (which have been opened in a new child window) have a modal, it opens in the Parent window rather than in the new window itself.
Any idea what might be the solution for this?
react-new-window is using ReactDOM.createPortal().
To get your new window to be the parent of another modal(portal) you may need to use the same technique.
See: https://reactjs.org/docs/portals.html
I am also facing same issue? Can you provide actual working example that is solving this problem?
I have tried using portals but no success.
I would love to help if someone can provide a reproducible scenario with the issue.
Hello! any luck with this issue? My popups are showing in the parent window, not in the new one. Thanks in advance.
Hello! any luck with this issue? My popups are showing in the parent window, not in the new one. Thanks in advance.
Do you have an example in https://codesandbox.io/ or something similar that shows the issue?
I would love to address this issue. If someone can't provide an example, can someone let me know which library are you using for modals.