Togglebuttons multiple() selects all

I'm just using the sample code from the docs and for some reason all buttons are being selected when you click just one. Anyone else experienced this?
ToggleButtons::make('technologies')
->multiple()
->options([
'tailwind' => 'Tailwind CSS',
'alpine' => 'Alpine.js',
'laravel' => 'Laravel',
'livewire' => 'Laravel Livewire',
])
ToggleButtons::make('technologies')
->multiple()
->options([
'tailwind' => 'Tailwind CSS',
'alpine' => 'Alpine.js',
'laravel' => 'Laravel',
'livewire' => 'Laravel Livewire',
])
1 Reply
nowak
nowak8mo ago
Yes, but only when I use ToggleButtons in a Filter like this:
->filters([
Filter::make('status')
->form([
ToggleButtons::make('status_id')
->label('Status')
->multiple()
->options([
'1' => 'Pending',
'2' => 'Reviewing',
'3' => 'Accepted',
'4' => 'Declined',
])
->inline(),
])
], layout: FiltersLayout::AboveContent)
->filters([
Filter::make('status')
->form([
ToggleButtons::make('status_id')
->label('Status')
->multiple()
->options([
'1' => 'Pending',
'2' => 'Reviewing',
'3' => 'Accepted',
'4' => 'Declined',
])
->inline(),
])
], layout: FiltersLayout::AboveContent)
Inside the form(Form $form) I don't see this behaviour, so there everything works fine.
Want results from more Discord servers?
Add your server