Issue solved in quality validation resource page for automatic submit #513

Merged
jothi merged 1 commits from ranjith-dev into master 2026-04-08 05:09:47 +00:00

View File

@@ -584,13 +584,18 @@ class QualityValidationResource extends Resource
}) })
->extraAttributes(fn ($get) => [ ->extraAttributes(fn ($get) => [
'class' => $get('validationError') ? 'border-red-500' : '', 'class' => $get('validationError') ? 'border-red-500' : '',
'id' => 'item_id',
'onkeydown' => "if (event.key === 'Enter') { event.preventDefault(); event.stopPropagation(); return false; }",
]) ])
->extraAttributes([ // ->extraAttributes(fn ($get) => [
'onkeydown' => "if (event.key === 'Enter') { event.preventDefault(); return false; }", // 'class' => $get('validationError') ? 'border-red-500' : '',
]) // ])
->extraAttributes([ // ->extraAttributes([
'id' => 'item_id' // 'onkeydown' => "if (event.key == 'Enter') { event.preventDefault(); return false; }",
]) // ])
// ->extraAttributes([
// 'id' => 'item_id'
// ])
->hint(fn ($get) => $get('validationError') ? $get('validationError') : null) ->hint(fn ($get) => $get('validationError') ? $get('validationError') : null)
->hintColor('danger'), ->hintColor('danger'),