asantibanez/livewire-select

original livewire listeners array gets ignored

Opened this issue · 0 comments

You cannot add an Listeners array because it will get ignored. In the LivewireSelect class there is a function called getListeners(). This will overwrite the livewire getListeners() function and replace it with the dependsOn array.

The original livewire getListeners function just returns $this->listeners

So I Currently fixed it by overriding the getListeners function and merge the LivewireSelect array with the original getListeners array

image

Now you can start using other listeners as well.
If i knew how to make pull requests i would have done it :)