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
{{ message }}
Repository navigation
Modals not rendering when LWS security flag is active. #3127
We are using the Modals from desing-system-react (version 0.10.54) in our proyect, we have detected that when the LWS security flag is active, the modals throw an error and it does not render.
the error leads us to ModalPortals.js. a file inside react-modal lib (version 3.14.3) imported by desing-system-react.
please can you check why its not working with LWS security?
Thanks for opening your first issue! 👋
If you have found this library helpful, please star it. A maintainer will try to respond within 7 days. If you haven’t heard anything by then, please bump this thread.
Hi all, do we have any news regarding the issue, I face the same problem my react app crashes. @interactivellama I would like a big favour, can you give a concrete example of the above?
Thanks!
Activity
welcome commentedon Aug 8, 2023
Thanks for opening your first issue! 👋
If you have found this library helpful, please star it. A maintainer will try to respond within 7 days. If you haven’t heard anything by then, please bump this thread.
interactivellama commentedon Aug 17, 2023
The Modal renders into the body tag. I would estimate that LWS is blocking access to the body tag. You might try a different
parentSelectorhttps://react.lightningdesignsystem.com/components/modals/#prop-parentSelectorkonstantinosBlatsoukasRepo commentedon Oct 20, 2023
Hi all, do we have any news regarding the issue, I face the same problem my react app crashes.
@interactivellama I would like a big favour, can you give a concrete example of the above?
Thanks!
interactivellama commentedon Oct 20, 2023
parentSelectoris an exposed mapping of this function from React Modal. https://reactcommunity.org/react-modal/#using-a-custom-parent-nodeissue Modals not rendering when LWS security flag is active. salesfor…