diff --git a/app/Filament/Resources/QualityValidationResource.php b/app/Filament/Resources/QualityValidationResource.php index b50d2e9..99a8937 100644 --- a/app/Filament/Resources/QualityValidationResource.php +++ b/app/Filament/Resources/QualityValidationResource.php @@ -584,13 +584,18 @@ class QualityValidationResource extends Resource }) ->extraAttributes(fn ($get) => [ 'class' => $get('validationError') ? 'border-red-500' : '', + 'id' => 'item_id', + 'onkeydown' => "if (event.key === 'Enter') { event.preventDefault(); event.stopPropagation(); return false; }", ]) - ->extraAttributes([ - 'onkeydown' => "if (event.key === 'Enter') { event.preventDefault(); return false; }", - ]) - ->extraAttributes([ - 'id' => 'item_id' - ]) + // ->extraAttributes(fn ($get) => [ + // 'class' => $get('validationError') ? 'border-red-500' : '', + // ]) + // ->extraAttributes([ + // 'onkeydown' => "if (event.key == 'Enter') { event.preventDefault(); return false; }", + // ]) + // ->extraAttributes([ + // 'id' => 'item_id' + // ]) ->hint(fn ($get) => $get('validationError') ? $get('validationError') : null) ->hintColor('danger'),