input type=“radio” onclick=“Mymodule.test(this)”
What am i doing wrong? If i remove the argument (this), it works.
Could you provide more information about Mymodule.test function and where exactly error occurs?
It would be awesome if you could make a small, self-contained code snippet!
Attached is blank Idea sample project with the problem. Debugged with Chrome v. 77.0.3865.120 (64-bit).
MyModule.zip (324.3 KB)
ps. Realized that “test()” is actually built in method in kotlin, threw me off for a while when trying the sample.
Ok i accidentally stumbled on the solution at stackoverflow
You need to name the method with @JsName to start accepting arguments to the function. This must be a bug or unwanted feature?
Could you take a look how the html editor works here. It says “unresolved function” whilst flickering to the suggested “red dot” item, containing the exact unresolved function. The mouse hotspot is at the dot separating the method and package.