Use `cloneAction` to only clone one column
How can i use the
cloneAction
method to only clone for example the product_id and not the amount ordered in a repeater?
I am trying to figure it out from here:
https://filamentphp.com/docs/3.x/forms/fields/repeater#cloning-items
It accepts a closure but I am not sure how to work out the closure.
I am stuck here:
ThanksSolution:Jump to solution
For anyone interested I worked it out:
```php
->cloneAction(fn (Action $action) =>
$action->action(function ($livewire, $component) {...
1 Reply
Solution
For anyone interested I worked it out: