Customize ld-select selected options rendering #633
-
Hi! I was looking for available options to customize how the selected options are rendered when using the ld-select (with multiple enabled). My need is to render options in the popover using a LaTeX wrapper, and so far for now, I can put custom HTML inside the ld-option, the rendering is working as expected. Is there a way to take hand on how is rendered this selection? Example: https://stackblitz.com/edit/github-fvtkeq?file=src%2Fcomponents%2FForm%2FForm.tsx <div
style={{
width: '1em',
height: '1em',
display: 'inline-block',
backgroundColor: 'red',
marginRight: '1em',
}}
></div> It looks OK for the popover: but only the text part is visible on selection: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @dpitois |
Beta Was this translation helpful? Give feedback.
-
@dpitois It's working now with @emdgroup-liquid/liquid v5.2.0: https://stackblitz.com/edit/github-fvtkeq-dbreyw?file=package.json%3AL6 |
Beta Was this translation helpful? Give feedback.
Hi @dpitois
I have created a feature request from your question and am working on a solution right now. Will let you know there, as soon as I have a solution.
🙌