-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React: CdsModal doesn't display when setting hidden={false} #122
Labels
Comments
ashleyryan
pushed a commit
to ashleyryan/core
that referenced
this issue
Jul 8, 2022
14 tasks
ashleyryan
pushed a commit
to ashleyryan/core
that referenced
this issue
Jul 8, 2022
steve-haar
pushed a commit
that referenced
this issue
Jul 11, 2022
🎉 This issue has been resolved in version 6.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary. |
ashleyryan
pushed a commit
that referenced
this issue
Aug 2, 2022
ashleyryan
pushed a commit
to ashleyryan/core
that referenced
this issue
Aug 2, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
When setting the
hidden
prop to false on the CdsModal component, the modal is not visible. React sends a string to the DOM, so the attribute ishidden="false"
but the hidden attribute should be removed, not set to false. See the spect https://www.w3.org/TR/2008/WD-html5-20080610/semantics.html#booleanHow to reproduce
https://stackblitz.com/edit/clarity-react-8em3m2?file=src%2FApp.tsx
Notice how the modal only appears if you conditionally render the modal only when hidden is false, or if you convert false to undefined
Expected behavior
The Modal would be visible with hidden=false like it is in V5: https://codesandbox.io/s/goofy-cori-wyy4eq?file=/src/App.tsx
Versions
Clarity project:
Clarity version:
Framework:
Framework version:
ie: Angular 11
Device:
Additional notes
Lit issue: lit/lit#3053
Related (closed) React Issue: facebook/react#9230 (comment)
The text was updated successfully, but these errors were encountered: