multiselect creates groups after selecting first item
I'm using the table builder in a Livewire component.
I have a multi select that searches using a custom function.
On the first search it works fine (picture 1),
but after i select a record, all of a sudden all my options are in groups. (picture 2)
This is my select field:
My custom search returns an array like this:
How do i prevent my records from going in to groups?


1 Reply
For future searchers:
My issue was my array:
It shouldnt be multi level, the correct array was: