primitives
primitives copied to clipboard
[Select] A version without dangerouslySetInnerHTML
Feature request
We cannot use Select
in production because the use of dangerouslySetInnerHTML
in SelectViewport
(and ScrollArea).
Overview
It would be great to have Select updated to not use dangerouslySetInnerHTML
internally, or to provide options to use it in a way that avoids this.
Examples in other libraries
Who does this impact? Who is this for?
Additional context
Bumping this. I've also run into this issue whereby the dangerouslySetInnerHTML
block is injected into the DOM leading to needing to hide the style
tag with CSS.
Any guidance on why this happening or how to fix it would be great.
- 1️⃣
We've just added a nounce
prop to aleviate these issues. You can try it in the latest release candidate.