F
Filament11mo ago
Ayz

can a dependent select be made to default to first item (i.e. not show 'select an option')? a bug?

I have tried ->searchPrompt(null) on a select field that depends on another trigger field. It works half-heartedly though: on form load and picking on the trigger field, it still shows "select an option." It's only from a 2nd change of the trigger that it starts behaving as expected (which is to default to the first item). Is there a way to do it? Should this be reported as a bug?
2 Replies
awcodes
awcodes11mo ago
Is your select searchable? If not ->selectablePlaceholder() is what you’re looking for.
Ayz
AyzOP11mo ago
🙏🙏 The docs are (and Filament is) really comprehensive
Want results from more Discord servers?
Add your server