SelectFilter default not working
I am trying to set a default value on my SelectFilter:
This is about the same as in the docs, instead the docs use a string value.
4 Replies
You are using multiple so:
Since it is an array, as I suspect your Pending isn't an array π
Solution
Make sure you use
RefundStatus::Pending->value
.@CodeWithDennis That indeed does the trick. I must say that the filament docs are sometimes not that clear in what is possible and what's not. Be thank you for your suggestion! π
Well because you use
multiple
it expects an array of values.
^ So like @toeknee said you should use an array, but since you also use an enum you need to grab the value of that enum.