F
Filament15mo ago
Ivan

With disableOptionWhen disable all other option

Is it possible to use disableOptionWhen to disable all options when a specifc option is selected? I've trued using this on my select input with live enabled but it does not work.

->disableOptionWhen(fn (string $value, mixed $state): bool => in_array('my_value', $state, true) && $value !== 'my_value')

->disableOptionWhen(fn (string $value, mixed $state): bool => in_array('my_value', $state, true) && $value !== 'my_value')
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server