Closed willfarias closed 8 months ago
Updating the control value to null
will reset the component. Let me know if this works for you :)
Updating the control value to
null
will reset the component. Let me know if this works for you :)
I don't think I understood what you meant, can you post an example code?
Click on "Reset Form Control" or "Set to Invalid Value" on this example page to see turnstile widget refreshing itself: https://ngx-turnstile.pages.dev/reactive-form-example
@choyiny Thank you very much, I was using event binding, I changed it to formcontrol and solved it using one of the solutions in the example.
Is there any way to use a reset method within a component? At the moment I'm using it in an insecure way: eval("turnstile.reset()");