Closed ashleyryan closed 2 years ago
:tada: This issue has been resolved in version 6.1.0 :tada:
The release is available on:
v6.1.0
Your semantic-release bot :package::rocket:
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.
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: https://github.com/lit/lit/issues/3053
Related (closed) React Issue: https://github.com/facebook/react/issues/9230#issuecomment-318512768