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

Search not working DOM wire:id error #52

Closed
tanthammar opened this issue Mar 26, 2020 · 3 comments
Closed

Search not working DOM wire:id error #52

tanthammar opened this issue Mar 26, 2020 · 3 comments

Comments

@tanthammar
Copy link

The search does not work all the time. This happens since you swapped to livewire.

Reproduce:
Go to the frontpage.
Click on "resource tools"
Enter something in the search input.
Check the console.

error:

Livewire Error:

Cannot find parent element in DOM tree containing attribute: [wire:id].

Usually this is caused by Livewire's DOM-differ not being able to properly track changes.

Reference the following guide for common causes: https://laravel-livewire.com/docs/troubleshooting 

Referenced element:

<g id="Page-1" stroke="none" stroke-width="1" fill-rule="evenodd">
                        <g id="icon-shape">
                            <polygon id="Combined-Shape" points="9.29289322 12.9497475 10 13.6568542 15.6568542 8 14.2426407 6.58578644 10 10.8284271 5.75735931 6.58578644 4.34314575 8"></polygon>
                        </g>
                    </g>
```
@mattstauffer
Copy link
Member

Huh, I haven't run into that yet, but thanks for sharing!

I tried to reproduce but can't:

image

Can you tell me a little more about your browser or what you typed? I'm confident this is a real problem, I just need to figure out how to reproduce it.

Thanks!

@mattstauffer
Copy link
Member

Ahh, when I un-searched then re-searched multiple times, I was able to trigger it! Let me add some debug info and see if I can fix it!

@mattstauffer
Copy link
Member

Fixed. 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

No branches or pull requests

2 participants