livewire / flux

The official Livewire UI component library
446 stars 38 forks source link

Slots on select boxes not working at all #517

Closed bernhardh closed 2 hours ago

bernhardh commented 2 hours ago

Using the slots of the select component doesn't do anything.

The following code is just copy+paste from the docs

<flux:select variant="listbox">
    <x-slot name="button">
        <flux:select.button class="!rounded-full bg-black" placeholder="Choose industry..." :invalid="$errors->has('...')" />
    </x-slot>

    <flux:option>Photography</flux:option>
    ...
</flux:select>

Results in

Image

As you can see, no placeholder is set.

Same goes for the listbox variant and the button slot. This time, I just place three hashes in the slot, just for testing:

<flux:select variant="listbox" placeholder="test">
    <x-slot name="button">
        ###
    </x-slot>

    <flux:option>Photography</flux:option>
    ...
</flux:select>

Image

bernhardh commented 2 hours ago

Sorry, just had to update