Updated focus invoice and serial number logic in throughout invoice validation related pages (resource, create, livewire, blade)
This commit is contained in:
@@ -106,9 +106,11 @@ class InvoiceValidationResource extends Resource
|
||||
->readOnly(fn (callable $get) => !empty($get('serial_number')))
|
||||
//->disabled(fn (Get $get) => !empty($get('serial_number')))
|
||||
->extraAttributes([
|
||||
'id' => 'invoice_number_input',
|
||||
'x-data' => '{ value: "" }',
|
||||
'x-model' => 'value',
|
||||
'x-on:keydown.enter.prevent' => '$wire.processInvoice(value)',
|
||||
'wire:keydown.enter.prevent' => 'processInvoice(value)',
|
||||
//'x-on:keydown.enter.prevent' => '$wire.processInvoice(value)',
|
||||
])
|
||||
// ->afterStateHydrated(function (TextInput $component, string $state) {
|
||||
// $component->state(ucwords($state));
|
||||
|
||||
Reference in New Issue
Block a user