Set duration for success message in production quantity page

This commit is contained in:
dhanabalan
2025-07-16 11:34:43 +05:30
parent 313dc012d5
commit b6dcb93402

View File

@@ -339,7 +339,8 @@ class ProductionQuantityPage extends Page implements HasForms
->label('Item Code') ->label('Item Code')
->columnSpan(1) ->columnSpan(1)
->autofocus(true) ->autofocus(true)
->reactive() //->reactive()
->live(onBlur: true) // avoids per-keystroke triggering
->default(fn () => $this->clear_qr) ->default(fn () => $this->clear_qr)
->extraAttributes([ ->extraAttributes([
'wire:keydown.enter' => 'processAllValues($event.target.value)', 'wire:keydown.enter' => 'processAllValues($event.target.value)',
@@ -1281,6 +1282,7 @@ class ProductionQuantityPage extends Page implements HasForms
->title("Valid QR Found") // {$operatorName} ->title("Valid QR Found") // {$operatorName}
->body("Valid QR code scanned: {$this->qrData}.") ->body("Valid QR code scanned: {$this->qrData}.")
->success() ->success()
->duration(200)
->send(); ->send();
} }
} }