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

Overflow issue: select list in its full height #547

Closed frederikhors closed 1 year ago

frederikhors commented 1 year ago

Given the example below is there a way to avoid the overflow issue?

I would like to see the select list above the modal in its full height.

REPL: https://svelte.dev/repl/f5581a06d05d44258b1ae90af299df41?version=3.55.1:

image

As you can see I need the overflow-auto but I also need to see the list in its full height above the modal, above all.

image

rob-balfre commented 1 year ago
floatingConfig={{ strategy: 'fixed' }}

Add the above as a prop...

The horizontal scrollbar will align to the input 'please select' on focus/click which is annoying but currently unavoidable.

frederikhors commented 1 year ago

Thanks.