Skip to content

Modals not rendering when LWS security flag is active.  #3127

Open

Description

@aYolandaBecerra

Hi All,

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?

Activity

  1. welcome commented on Aug 8, 2023

    @welcome

    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.

  2. interactivellama commented on Aug 17, 2023

    @interactivellama
    Contributor

    The Modal renders into the body tag. I would estimate that LWS is blocking access to the body tag. You might try a different parentSelector https://react.lightningdesignsystem.com/components/modals/#prop-parentSelector

  3. konstantinosBlatsoukasRepo commented on Oct 20, 2023

    @konstantinosBlatsoukasRepo

    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!

  4. interactivellama commented on Oct 20, 2023

    @interactivellama
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions