Select input with multiple option Not working

Multi-select return only one value.

Steps to Reproduce:
Step 1: Create Livewire component.
Step 2: Create form with multi select field.
step 3: Instead of using wire:model submit form on click submit

Are you using the latest version of Livewire: Yes

If you declare your model as an array, multi select should work.

Can you show us the code?

@skywalker not really much to show but hopefully this helps:


public $myA = [];

    <select wire:model="myA" multiple>
        <option value="value1">value1</option>
        <option value="value2">value2</option>
        <option value="value3">value3</option>
        <option value="value4">value4</option>

take a look at this topic and this maybe helps you.


What if i am not using livewire model and use normal input like we do in php.And when click on button call an livewire function and store this data to livewire variable.
I am facing almost same issue.And i have not used livewire model because of my requirement.

@shortbrownman @skywalker

I am submitting form with multiple inputs with on input is multiple select.
Other fields are accessible successfully.

I am using same code explained over here.