From b6dcb93402548f89403c10da0f631a1686b64a1a Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 16 Jul 2025 11:34:43 +0530 Subject: [PATCH] Set duration for success message in production quantity page --- app/Filament/Pages/ProductionQuantityPage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Filament/Pages/ProductionQuantityPage.php b/app/Filament/Pages/ProductionQuantityPage.php index 4cd5c48..a77b537 100644 --- a/app/Filament/Pages/ProductionQuantityPage.php +++ b/app/Filament/Pages/ProductionQuantityPage.php @@ -339,7 +339,8 @@ class ProductionQuantityPage extends Page implements HasForms ->label('Item Code') ->columnSpan(1) ->autofocus(true) - ->reactive() + //->reactive() + ->live(onBlur: true) // avoids per-keystroke triggering ->default(fn () => $this->clear_qr) ->extraAttributes([ 'wire:keydown.enter' => 'processAllValues($event.target.value)', @@ -1281,6 +1282,7 @@ class ProductionQuantityPage extends Page implements HasForms ->title("Valid QR Found") // {$operatorName} ->body("Valid QR code scanned: {$this->qrData}.") ->success() + ->duration(200) ->send(); } }