Select::selectablePlaceholder(false) not working with relationships
I have the following select component, which correctly displays as a list of the user's leads, with the first item always selected:
If
selectablePlaceholder(false)
is removed, it works as expected. With it in place however, it always fails the required()
validation, despite the option being selected. Removing required()
allows the form to be saved, but the lead_id
value is never persisted to the database.2 Replies
I'm experiencing this as well. Did you ever figure it out?
Looks like if I set the default option 'it works' but I expected having no selectable placeholder meant that the 'option shown' would be the one submitted.
Pretty sure if there is no interaction with the select then no value is ever set, so the state in lw/alpine will always be null.