primitives icon indicating copy to clipboard operation
primitives copied to clipboard

[Select] A version without dangerouslySetInnerHTML

Open elisehein opened this issue 1 year ago • 2 comments

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

elisehein avatar Aug 23 '23 11:08 elisehein

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.

TylerK avatar Jan 31 '24 19:01 TylerK

  • 1️⃣

SSifantus avatar Jan 31 '24 20:01 SSifantus

We've just added a nounce prop to aleviate these issues. You can try it in the latest release candidate.

benoitgrelard avatar Feb 29 '24 12:02 benoitgrelard