From f30c8e997e82fc19bffc0824766cb1e057ca51d5 Mon Sep 17 00:00:00 2001 From: Scott Scites Date: Sun, 27 Aug 2023 16:45:32 -0400 Subject: [PATCH] fix 'Unhandled exception rendering component: Unable to set property 'OnClick' on object of type 'MatBlazor.MatButton'. The error was: Specified cast is not valid.', error --- src/Website/docs/Blazor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Website/docs/Blazor.md b/src/Website/docs/Blazor.md index 29c89ce..3a0030a 100644 --- a/src/Website/docs/Blazor.md +++ b/src/Website/docs/Blazor.md @@ -73,7 +73,7 @@ Additionally, some parameter types must be handled specially: let myButton model dispatch = comp { - attr.callback "OnClick" (fun _ -> dispatch ButtonClicked) + on.click (fun _ -> dispatch ButtonClicked) "Click me!" } ```