Every time I need/want to use a custom element attribute it’s a reserved name. It’s pretty annoying when trying to work with 3rd party API or working with inputs and trying to do type=hidden (hint)
What’s the reason why we can’t use onclick attributes?
Hi @Randy, thanks for the question. The onclick custom attribute is reserved for security reasons, however there is a workaround that may help, see this article here:
I hope this helps!