rob-balfre / svelte-select

Svelte Select. A select component for Svelte
https://svelte-select-examples.vercel.app
Other
1.25k stars 175 forks source link

Item slot does not render all it's content #668

Closed plrenaudin closed 4 months ago

plrenaudin commented 4 months ago

Hello,

I tried to render an custom item with a column layout and it only show the first part of it:

image

<Select {items}>
    <svelte:fragment slot="item" let:item>
        <div style="display:flex; flex-direction: column;">
            <div>
                this is visible {item.label}
            </div>
            <div>this is not</div>
        </div>
    </svelte:fragment>
</Select>
plrenaudin commented 4 months ago

Found the issue, I needed to add --item-height="auto" to the select.