Repeater afterStateUpdated
In my Filament form, I have a Repeater that contains a Select field. Both the Repeater and the Select field have afterStateUpdated callbacks. When I make a selection in the Select field:
The Repeater's afterStateUpdated is triggered first.
Then, the Select field's afterStateUpdated is triggered.
I want the Select field's afterStateUpdated to execute first, and then the Repeater's afterStateUpdated should execute.
4 Replies
what is the goal?
Thank you for your reply..
I am developing an invoice application where I use a Filament Repeater to manage items. Within the Repeater, I have a Select field for choosing an item. Here's how it works:
When an item is selected in the Select field, it automatically fetches the item's default price and sets the default quantity to 1.
I calculate the total price dynamically based on the selected item's price and quantity.
The issue arises when I manually adjust the item's price. While changing the item or quantity updates the total price correctly, modifying the price directly doesn't trigger an update to the total.
Here's the code I am using:
`
`
?
I have problem with select item in first time, I show that in uploaded file, It is about one month I searching for the reason, I will very appreciate if you can help me with this.