When I open one page I need to have the select already open. I use this tailwindcss select
I tried this
<Listbox value={selectedPerson} onChange={setSelectedPerson}>
//Listbox.Button has a prop called autoFocus
<Listbox.Button autoFocus={true}>{selectedPerson.name}</Listbox.Button>
<Listbox.Options>
{people.map((person) => (
<Listbox.Option
key={person.id}
value={person}
disabled={person.unavailable}
>
{person.name}
</Listbox.Option>
))}
</Listbox.Options>
</Listbox>
The prop "autofocus" exists but it doesn't seem to work. Any suggestion?