F
Filamentβ€’11mo ago
Wbzy

Conditionally hide form in modal action

i want to hide simple form but it seems not work using this method.
Solution:
sory guys i forgot to add ->reactive() in the select form, my bad
Jump to solution
4 Replies
toeknee
toekneeβ€’11mo ago
Where did you get that code from? Try:
->hidden(\Closure $get): string => (int) $get('status') !== (int) RegistereMemberStatus::Rejected->value)
->hidden(\Closure $get): string => (int) $get('status') !== (int) RegistereMemberStatus::Rejected->value)
Dennis Koch
Dennis Kochβ€’11mo ago
Strict comparision are always dangerous in Livewire context
toeknee
toekneeβ€’11mo ago
That's why I suggested casting to integers in my response πŸ™‚
Solution
Wbzy
Wbzyβ€’11mo ago
sory guys i forgot to add ->reactive() in the select form, my bad
Want results from more Discord servers?
Add your server
More Posts