Skip to content

Picker Item with dangerouslySetInnerHTML #1662

Answered by LFDanLu
ZoltanSzilagyiCse asked this question in Q&A
Discussion options

You must be logged in to vote

@ZoltanSzilagyiCse Can you try wrapping the <div dangerouslySetInnerHTML={{__html: input.name}}/> within a <Text> (https://react-spectrum.adobe.com/react-spectrum/Text.html)? This allows the proper grid-area to be set on the element wrapping the text, positioning the element into the appropriate grid section

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ZoltanSzilagyiCse
Comment options

Answer selected by ZoltanSzilagyiCse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants