Dark
Select (native: false) disabled but user can choose options
oh I thought you were speaking about the project sorry, here is the link: https://flareapp.io/share/353vJpo7/claim/u6uUrQyviOW1qqURquMH1KMAV8xI41Mx
32 replies
Select (native: false) disabled but user can choose options
it is not live, but you can see the whole code here:
the component code: https://gist.github.com/heloufir/58f39335b877a7ded91dfbbe0e10d1a6
and the blade code: https://gist.github.com/heloufir/2e94f3ba6a5ce78a70f1524135f7a496
32 replies
Select (native: false) disabled but user can choose options
Yep, I debugged on that and I am sure, it disables the select but let the user click on the select and see the options.
But if I put true without a closure, it works the select is disabled and the user cannot click on it
32 replies
Select (native: false) disabled but user can choose options
here is the component code: https://gist.github.com/heloufir/58f39335b877a7ded91dfbbe0e10d1a6
and the blade code: https://gist.github.com/heloufir/2e94f3ba6a5ce78a70f1524135f7a496
32 replies
requiresConfirmation not working on actions
@justlasse
here is for my case:
- Not working example:
In my Livewire Component I have a function that returns all my actions as an array:
Then in my blade view, I loop then render the action:
that works, but like there is no confirmation, it fires directly the action method.
- Now, the working example:
And for the blade view, I render them separatly:
And also a weird behaviour I found, is when you define your Action with the following format, it WORKS:
But with the following format it does not WORK:
So basically, you need to specify a function for each action, then for the requiresConfirmation you need to specify the action as an embedded method in the
action()
53 replies
requiresConfirmation not working on actions
I found the solution,
When using a function that defines an array of actions that did not work but when using a function that only defines a single Action it works
So basically what it did work for me is to define a function for each Action that I have and follows the documentation here: https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component/
And all works fine
53 replies