Fire an action after updating Select?
I was wondering if it is possible to run an action when updating the value of a Select, but with a custom form. Like I can do with a Table Action.
I want to change e.g. the status of a record, but also set some other fields and allow the user to input a comment.
6 Replies
->reactive()->afterStateUpdated(fn () => ...)
But can I do something like this:
What's the issue with that one?
You want it to update immediately when you change the Select
Yes, from the Form, not the Table.
I guess something similar like this could work.
->extraInputAttributes(['wire:change' => 'submit')
Someone was using this approach, but that adds a button which results in an extra action for the user: