What seems to be the problem:
I have a Livewire component that contains multiple instances of a blade component, each of which contains another Livewire component. Every Livewire component has a unique wire:key defined. It is causing “Cannot read property ‘fingerprint’ of null” when clicking on one of the items, under the text input.
I was unable to create a Laravel Playground example that included Livewire and Blade components (tips on that would be appreciated). However, because of that I had to refactor the code a little in Laravel Playground to not use a Blade component at all. When I did the code works without the error.
To summarise, using the Blade component it fails, with the code copied from the Blade component and repeated for each item, it works. Also, if I include only one of the x-item elements, it also works.
In the playground, I have included the code for the item Blade component and the code (commented out) to include it in the top-wire component.
Steps to Reproduce:
Use the code from the Playground. In top-wire.blade.php, comment out (or remove) the two div elements at the same level as and immediately above the commented out x-item elements and uncomment those two items.
Are you using the latest version of Livewire:
I am using version 2.4.3
Do you have any screenshots or code examples:
Code in Laravel Playground example
EDIT: I have added three replies with the generated code obtained from debugging:
- The code that works (i.e. without the Blade component).
- The code that fails (i.e. with the Blade component).
- The generated content for each Blade component.