Fused group - display multiple validation errors

This commit is contained in:
Raj Siva-Rajah
2025-07-06 04:08:06 +00:00
parent e91d96c9a2
commit 2ab0221bbf
@@ -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);