From ec0a53e30812747cde38448070247c85d05122d4 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 7 Mar 2026 08:54:10 +0530 Subject: [PATCH] Added enter event logic in sticker reprint --- app/Filament/Pages/StickerReprint.php | 3 ++- .../filament/pages/sticker-reprint.blade.php | 17 ++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/app/Filament/Pages/StickerReprint.php b/app/Filament/Pages/StickerReprint.php index 73977bf..ddff5b4 100644 --- a/app/Filament/Pages/StickerReprint.php +++ b/app/Filament/Pages/StickerReprint.php @@ -281,7 +281,7 @@ class StickerReprint extends Page implements HasForms } }) ->extraAttributes(fn ($get) => [ - 'id' => 'scan_locator_no', + 'id' => 'production_order', 'class' => $get('productionError') ? 'border-red-500' : '', ]) ->hint(fn ($get) => $get('productionError') ? $get('productionError') : null) @@ -421,6 +421,7 @@ class StickerReprint extends Page implements HasForms // 'operator_id'=> $operatorName, 'recent_qr' => $this->recQr, ]); + $this->dispatch('focus-qr-input'); $this->triggerChartUpdate(); } } diff --git a/resources/views/filament/pages/sticker-reprint.blade.php b/resources/views/filament/pages/sticker-reprint.blade.php index 1780030..434d822 100644 --- a/resources/views/filament/pages/sticker-reprint.blade.php +++ b/resources/views/filament/pages/sticker-reprint.blade.php @@ -34,22 +34,33 @@ + @push('scripts')