Closed price2b closed 2 years ago
weird.
@price2b I am extremely sorry for the late response. For my exam, I did not available. I tried to fix this issue, but it was also hard for me to a proper understanding. Is possible to share your demo project or maybe it will be better if I connect with your pc and try to solve this issue. Can we add on discord.com, please? This is my discord id - mhmiton#8254.
thank you. added using my account discord siherrera#7542
Just a comment and thats why I opened the case. This example is based on https://www.youtube.com/watch?v=pfSjRcudZVA Livewire: 3-Level Dependent Dropdowns by LaravelDaily with repository at -> https://github.com/LaravelDaily/Livewire-jQuery-Three-Dropdowns
the weird thing is that it works perfect in a vanilla laravel installation and it can be installed using Laravel Modules livewire. The component renders ok but it is not passing selectedState or selectedCity despite it shows on laravel debugbar (livewire) that state changed and charges all States the values from DB. (you can see the dependent states from the selected country).
But selectedCountry = "correctly the country" selectedState = "null" selectedCity = "null"
when it works in a vanilla installation it displays: selectedCountry = "correctly the country" selectedState = "null" selectedCity = 0
Thank you so much for your time and help using teamwiewer. my fault. the answer:
It was a <div></div>
in the beginning of each component I didnt know it was mandatory to place!.
thank you!
Hi, I have a question: Im working with a dependent dropdown component. Do you know if Laravel-modules-livewire changes the way it displays selected previous values?
My current code:
`<?php
namespace Modules\Shipper\Http\Livewire;
use Livewire\Component; use Modules\Shipper\Entities\City; use Modules\Shipper\Entities\Country; use Modules\Shipper\Entities\State;
class CSC extends Component { public $countries; public $states; public $cities;
}`
my view:
Im surprised because debugging livewire it displays all the dependent dropdown values (states) correctly but its not displaying the dependent state dropdown in laravel view. When the livewire works (not using modules/livewire) when country is selected displays: selectedCountry="AR" selectedState=0
Now displays: selectedCountry="AR" selectedState=Null.
Any guidedance appreciated!.