thaw-ui / thaw

An easy to use leptos component library
https://thawui.vercel.app
MIT License
278 stars 33 forks source link

Select options z-index with modal / drawer #125

Closed VincentBerthier closed 7 months ago

VincentBerthier commented 7 months ago

Hi, I’m trying to use a Select within a Drawer (same thing with a Modal). The options however appear behind the Drawer which is less than optimal… image (We only see a bit at the very bottom) I’ve tried setting the Select’s z-index to 3000 but it doesn’t change anything (which I don’t think it can that way anyway?)

It works just fine with a standard html select: image

Am I missing something somewhere or is this a bug?

luoxiaozero commented 7 months ago

Setting the z_index attribute of the Drawer below 2000 should do the trick.

    <Drawer title="Title" show placement z_index=1999>
        <Select value options/>
    </Drawer>
VincentBerthier commented 7 months ago

It did indeed, thanks!