#111622

In my code I’ve

<button onClick=”testLogin(this.form) class=…>

where testLogin is a very simple js shown above.

When I substitute with

<smart-button onClick=”testLogin(this.form) class=…> seems that this.form is undefined and then the testLogin js fails telling me the variable is should receive is undefined.

Why this.form is undefined with smart-button ?

What’s the alternative ?

Tks