F
Filament9mo ago
slamx_

Select disabled not working

When I use the following code, the disabled only worked not with multiple(). Any tips to fix this? Select::make('users') ->label(__('Users')) ->multiple() ->reactive() ->afterStateUpdated(function (Closure $set, $state) { $set('user_group', null); $set('select_all', false); }) ->required() ->disabled(function(Closure $get){ $multi = $get('multi_user'); if($multi){ if($this->userAllEdit){ return false; } else { return true; } } else { return false; } }) ->options($options)
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server