mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-25 10:04:54 +08:00
Fused group - display multiple validation errors
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
@if ($hasError)
|
||||
@php
|
||||
if ($allErrors === null) {
|
||||
if ($field?->shouldShowAllValidationMessages() && $errors->has($statePath)) {
|
||||
if ($field instanceof \Filament\Forms\Components\Field && $field->shouldShowAllValidationMessages() && $errors->has($statePath)) {
|
||||
$allErrors = $errors->get($statePath);
|
||||
} else {
|
||||
$errorMessage ??= $errors->has($statePath) ? $errors->first($statePath) : ($hasNestedRecursiveValidationRules ? $errors->first("{$statePath}.*") : null);
|
||||
|
||||
Reference in New Issue
Block a user