F
Filamentβ€’16mo 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β€’16mo 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β€’16mo ago
Strict comparision are always dangerous in Livewire context
toeknee
toekneeβ€’16mo ago
That's why I suggested casting to integers in my response πŸ™‚
Solution
Wbzy
Wbzyβ€’16mo ago
sory guys i forgot to add ->reactive() in the select form, my bad
Want results from more Discord servers?
Add your server