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

Solution:Jump to 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)
...2 Replies
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 inputsSolution
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)