diff --git a/app/Livewire/RandomSerialNumberList.php b/app/Livewire/RandomSerialNumberList.php index d8987eba..f06b8dd5 100644 --- a/app/Livewire/RandomSerialNumberList.php +++ b/app/Livewire/RandomSerialNumberList.php @@ -232,6 +232,14 @@ class RandomSerialNumberList extends Component $this->serialNumbers = $serialNumbers ?: ['']; } + #[On('clear-serial-numbers')] + public function clearSerialNumbers(): void + { + $this->serialNumbers = ['']; + $this->dispatch('sticker-options-clear', stickerOptions: ''); + $this->dispatch('production-order-clear', productionOrder: ''); + } + public function clear(){ $this->serialNumbers = ['']; $this->dispatch('sticker-options-clear', stickerOptions: '');