You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the widget inside a component that's shown or hidden in a form, and I found out that when I hide the container component, the recaptcha is still shows, but in the top-left corner, above anything else.
I solved this setting the restamp="true" in the container component, and modifying the detached method as follows:
Hi, the initial problem is the recaptcha doesn't work inside shadow dom, so it is appended to the body in case it has a shadow root parent. So when you hide your form, the widget might no longer be inside.
You can use the hidden property that handles the work of hiding the in-body widget, ex:
I'm using the widget inside a component that's shown or hidden in a form, and I found out that when I hide the container component, the recaptcha is still shows, but in the top-left corner, above anything else.
I solved this setting the restamp="true" in the container component, and modifying the detached method as follows:
Do you think it can be the correct approach?
Thanks
Andrea
The text was updated successfully, but these errors were encountered: