F
Filament3mo ago
jw

CheckboxList Bug when used inside Fieldset with relationship?

Hi,
I have a CheckboxList that works correctly when used on another page outside of a relationship. However, when it's used inside a Fieldset with the relationship set, I get all sorts of strange behaviour. First, the control does not hydrate correctly. Secondly, if I tick a checkbox then the state returned to 'afterStateUpdated' is a boolean rather than an array. Please see the attached screenshot for details. Thanks
No description
2 Replies
Dennis Koch
Dennis Koch3mo ago
Does the same happen without your ->afterStateHydrated?
jw
jw3mo ago
Hi Dennis, sorry for the slow reply, I have been travelling. Yes, it does happen even without the 'afterStateHydrated'. I ended up using a workaround for this in the meantime by creating normal checkboxes (as the options are all columns on the one model (ie: user->item_1, user->item_2, ...). So, it's not critical to me now but could still be an issue for someone else. Let me know if you'd like further investigation or I should close. Thanks for your assistance