Is it possible to have a required (non-nullable) Select Form Component?

I've added ->nullable(false) which adds an asterisk to the input, but I'm still able to remove the value from the select. Is there a way to avoid this? I'd love for nullable(false) to remove the x from the select box
No description
No description
Solution:
Oh balls - I just re-read the docs and found what I was looking for. In case anyone else comes across this post, what you need is ->selectablePlaceholder(false)...
Jump to solution
2 Replies
trymedo
trymedoOP2mo ago
I should add, despite having a "default" value set on this too, when you clear out the default value with the x it then sets it to null. This is on a filters form - I've not tried this somewhere else in the UI yet to see if it's only this area that's affected but I would presume it to be consistent across all Select inputs
Solution
trymedo
trymedo2mo ago
Oh balls - I just re-read the docs and found what I was looking for. In case anyone else comes across this post, what you need is ->selectablePlaceholder(false)
Want results from more Discord servers?
Add your server