support Trusted Types? #9455
k-yle
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Dependencies check up
What version of @mantine/* packages do you have in package.json?
^9.8.1
What package has an issue?
@mantine/core
What framework do you use?
Vite
In which browsers you can reproduce the issue?
All
Describe the bug
Mantine does not support Trusted Types (a new security feature), because it uses
dangerouslySetInnerHTMLfor core logic, for example:mantine/packages/@mantine/core/src/core/InlineStyles/InlineStyles.tsx
Line 33 in af8823e
When I load a simple mantine app, I can see
dangerouslySetInnerHTML/innerHTMLis used to write these vakues:It would be great to make all of
@mantine/*compatible with trusted types, or at least the core logic.If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
No response
Self-service
All reactions