You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
V2 Multi Select with wire:model.live does not react on changes To Reproduce
TestComponent.php
<?php
namespace App\Livewire;
use Livewire\Component;
class TestComponent extends Component
{
public array $options = [];
public function checkOptions(): void {
dump($this->option);
}
public function render()
{
return view('livewire.test-component');
}
}
nastoychev
changed the title
V2 Select with wire:model.live does not react on changes
V2 Multi Select with wire:model.live does not react on changes
Dec 1, 2023
@nastoychev I don't understand why you wrote a dollar sign in wire:model.live. As I can see in your updated code version, an error will still occur if you do not remove the dollar sign
@nastoychev I don't understand why you wrote a dollar sign in wire:model.live. As I can see in your updated code version, an error will still occur if you do not remove the dollar sign
Thanks a lot for your review and taking care of the correctness. Now I edited again the example where I added simple submit button which check the $this->options.
Still not filling it with chosen options.
Perhaps I saw that in the documentation page there are no examples to the selects with wire:model.live and if it's not integrated we need to know and take care of it. I guess the problem is deeper, because our components are pretty complicated behind the scene.
So if @PH7-Jack write also some suggestions will be helpful.
Describe the bug
V2 Multi Select with wire:model.live does not react on changes
To Reproduce
TestComponent.php
bookie-selector.blade.php
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots or Videos
If applicable, add screenshots or videos to help explain your problem.
Dependencies
Desktop (If applicable, please complete the following information):
Smartphone (If applicable, please complete the following information):
The text was updated successfully, but these errors were encountered: