Filament 3 select validation error message hide issue #13989
midhunraaj
started this conversation in
General
Replies: 2 comments
-
You probably need to make your select reactive, since the next time the validation gets triggered is when you submit the form again 🤔 Select::make('status')
->options(...)
->live() |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you are using the public ?array $data = [
'user_id' => null,
]; And for the live validation work, do this in any field ->afterStateUpdated(function ($livewire, $component) {
$livewire->validateOnly($component->getStatePath());
}) like... Select::make('user_id')
->label('User')
->searchable()
->options(User::all()->pluck('name', 'id'))
->required()
->live()
->afterStateUpdated(function ($livewire, $component) {
$livewire->validateOnly($component->getStatePath());
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm encountering an issue with the Laravel Filament 3 select field. When the field is set to "required," the error message appears as expected, but it does not disappear even after a value is selected. Is there a solution to this problem?
Beta Was this translation helpful? Give feedback.
All reactions