GRecaptcha field disappears on livewire/update in a Livewire Component, but not in Panel Resource
I've implemented the Captcha field in a Livewire Component, but after doing the captcha or saving the form, the captcha disappears. It seems
wire:ignore
here is not respected. The weird thing here is when I place this Captcha field inside a panel resource form, it works correctly and does not disappear. I've tried moving the wire:ignore
but it's not working. I could really use some assistence here.
Solution:Jump to solution
I've figured it out, I had moved the app script in @vite to before the body, when I moved it back to the head, it works as it should.
Wrong:
```html
<html lang="{{ strreplace('', '-', app()->getLocale()) }}">...
3 Replies
not sure if this is the issue, but add form->fill() to the mount method:
That sadly wasn't the issue. I had that before in my class, but I wrongfully omitted it in the example.
Solution
I've figured it out, I had moved the app script in @vite to before the body, when I moved it back to the head, it works as it should.
Wrong:
Good: