SamProf / MatBlazor

Material Design components for Blazor and Razor Components
http://www.matblazor.com
MIT License
2.84k stars 386 forks source link

MatCheckedBox @OnChanged NotWork #757

Open HossienMehdikhah opened 4 years ago

HossienMehdikhah commented 4 years ago

Describe the bug hi, I Want Run A method when a MatCheckedBox Checked Or Uncheked. in Blazor i Use and Put my Method in OnChange <input @onChange="Temp",

private void Temp(EventChangeArg e) { ...... } and Run My Method but in Matblazor dont Work.

Christian-Oleson commented 3 years ago

@HossienMehdikhah ,

Thanks for opening an issue. Would you mind providing a Blazor fiddle example as well as following the bug guidelines and reporting? Thanks!

khew81 commented 3 years ago

I am meeting the same problem too. The correct way shall be <input @onchange="@Temp">, you're missing the @. I am meeting the same bug too.

Christian-Oleson commented 3 years ago

@khew81 , What error occurs?

khew81 commented 3 years ago

@Christian-Oleson No errors but the event just not being triggered, after I changed from <MatSelectItem @onchange="@OnChangeEvent> to <Select @onchange="@OnChangeEvent>the on change event triggering just works. I'm currently using the Bootstrap