Updating parent form state from a child component in Filament's Repeater

I have a Repeater component that contains a Select component. The Select component's value change should affect another field (days_taken) that resides in the parent form, outside the Repeater component.

I have attached relevant portion of my form schema.

In the afterStateUpdated callback for day_part, I want to update the days_taken field based on the selected value, but it seems the $set function doesn't have the scope to change this.

Is there a way to update the state of the days_taken from inside the afterStateUpdated callback of day_part? If not, could you suggest an alternative approach to achieve this functionality?
Screenshot_2023-06-20_at_1.06.01_PM.png
Was this page helpful?