Searchable & Required Select Bug
When using a select field with searchable and required in a Livewire custom page the required validation fails. Removing the searchable and it works. It also works fine in a resource panel.
Code
Forms\Components\Select::make('zipcode_id')
->relationship('zipcode', 'zipcode')
->label('Your Oregon Zipcode')
->required()
->searchable(),
In the custom page, I can search and it fills the field with the value but is still fails the required validation so doesn't save and I get the required error message.
File: https://github.com/griggsk/osp/blob/main/CreateChild.php
Line 92 is where the zip is
Console errors
When selecting:
- Uncaught TypeError: this.select is null
- Uncaught (in promise) TypeError: this.select is null
Any ideas on how to fix? ThanksGitHub
osp/CreateChild.php at main · griggsk/osp
Contribute to griggsk/osp development by creating an account on GitHub.
1 Reply
Any feedback?