-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components
Description
Add Ablity to use onclick to call JS Functions instead of just c# methods.
Assuming I am understanding it correctly, onclick cant be used to call a JS function, and can only be used to call a C# method.
Currently I would need to have it call a C# method and then have it call a JS Function.
When Adding The Code Below to cshtml page like index.cshtml, It throws in error.
Uncaught Error: System.ArgumentException: There is no event handler with ID 0
I created default blazor template, and added this code to index.cshtml
<input
type="button" onclick="demoFunction()" /><script> function demoFunction() {}</script>`
"version": "2.1.300-preview1-008174"
tjl10
Metadata
Metadata
Assignees
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components