Issue solved in quality validation resource page for automatic submit
Some checks failed
Gemini PR Review / Gemini PR Review (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Waiting to run
Laravel Larastan / larastan (pull_request) Waiting to run
Laravel Pint / pint (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

This commit is contained in:
dhanabalan
2026-04-08 10:39:33 +05:30
parent 360ea0b437
commit 1ea4928b3f

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'),