Open tranhuungan1990 opened 1 month ago
Livewire Component
public array $quanhuyen = []; $tinhthanh = Province::get()->toArray(); public function updatedTinhThanh() { $this->quanhuyen = District::select('id', 'name')->where('province_id', $this->tinh_thanh)->get()->toArray(); }
Blade View
<x-select label="Tỉnh/Thành phố" wire:model.live="tinh_thanh" :options="$tinhthanh" option-label="name" option-value="id" />
How to stop automatically scrolling to the top of the page? Thank you!
Livewire Component
Blade View
How to stop automatically scrolling to the top of the page? Thank you!