Default value with searchable in select component
Hi, I want to use the default() method in a Select component, it works, but if I add the searchable() method, it doesn't show the default option, is there something I'm missing?
12 Replies
Can you try
->preload()
?What about static options? For ex:
@Dennis Koch no it didn't work
Looks like is selecting it, but the label is not showing up
Is it a resource page? Create, edit?
Is a edit form in a widget
Did you try the static example? Can you share the image?
No, let me see
@Leandro Ferreira I just tried and is the same
If I don't set a default value it shows the default text for when there is no option selected
->formatStateUsing() in edit forms, but there is another option π€
try it please:
I'll try that later today, I have another task right now
Please let us know how you get on so we can close the post π