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

Fix context of listbox to prevent error when using wire:navigate #4008

Conversation

gdebrauwer
Copy link
Contributor

When I combine Livewire's wire:navigate and listbox components, I get the following error when navigating:

Screenshot 2024-01-30 at 14 15 03

The combobox component does not have that issue. When looking at the source code of the combobox, I saw that the __activateSelectedOrFirst method is directly accessed on this instead of this.$data. This PR changes that in the listbox component in the same way, as that fixes the error.

@calebporzio
Copy link
Collaborator

Ideally we have a test for this, but I get that it happens because of Livewire, so I'll merge. Thanks!

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 this pull request may close these issues.

2 participants