Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

original livewire listeners array gets ignored #13

Open
Jabirr opened this issue Jan 13, 2021 · 0 comments · May be fixed by #36
Open

original livewire listeners array gets ignored #13

Jabirr opened this issue Jan 13, 2021 · 0 comments · May be fixed by #36

Comments

@Jabirr
Copy link

Jabirr commented Jan 13, 2021

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 :)

bfiessinger added a commit to bfiessinger/livewire-select that referenced this issue Aug 27, 2021
bfiessinger added a commit to bfiessinger/livewire-select that referenced this issue Aug 27, 2021
bfiessinger added a commit to bfiessinger/livewire-select that referenced this issue Aug 27, 2021
…s-ignored

fix original livewire listener array ignored (closes asantibanez#13)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant