Togglebuttons selects everything
Hi there!
If I select one item in my ToggleButtons form component, for some weird reason it selects them all.
Has anyone else experienced this issue?
16 Replies
Are you using the panel builder? Is it a custom page?
Custom page indeed
Did you create the mount method with
$this->form->fill()
?
Are you using a statePath?Yep
Other fields in the form are working just fine
console errors?
No π
please share the code..
the data array has this data
do you mean,
$this->settings
?Oh yes
days
isn't multiple, so this should contain one valueIts multiple (forgot to add that in the first snippet), but it is as in the larger one
Solution
'days' => 'monday'
ooooh thanks
its just an array that has to be saved with the values
not an asociative array with true/false π
yes