Button event querying instead of firing

I have a button in a Blazor app configured as such:

<SfButton @onclick="CheckUsage">
Check Usage
</SfButton>


The method is configured as such in the code:

protected void CheckUsage(MouseEventArgs args)
{
debug("CheckUsage");
}


When the app runs and I click on the button, instead of firing the event, I end up with a query string in the browser that looks like this:

https://localhost:7279/settings/pro?textbox-61430baf-bf9d-4b31-bc98-f0a64351253c=text-value&languages=en&q=&q=&q=&q=

I am having some difficulty understanding what the issue is here. I am using a Tailwind/Bootstrap combo for styling with CSS files referenced from the Syncfusion studio, and while there's some Javascript in the app, I feel like this is probably a more simple problem than it would initially appear so I wanted to reach out and see if there might be something I could be missing somewhere. 

Initially I tried setting up without the MouseEventArgs bc I don't need it, but that made no difference. The MouseEventArgs, if it matters, is coming from the Microsoft namespace and not Syncfusion. 


Thanks


2 Replies

LR Lucas R Vogel October 24, 2023 03:18 PM UTC

I also tried using a regular button and it fires the event with no issues.



KV Keerthikaran Venkatachalam Syncfusion Team November 3, 2023 05:08 PM UTC

Hi Lucas,


We are unable to replicate the issue on our end. We have prepared a sample based on a code snippet and inserted a break point in the CheckUsage method. It is working fine. And also, I have checked that the Tailwind and Bootstrap themes are also working. I have attached the video demonstration and sample for reference.


Note: Your provided link is not working properly.


If you are still facing issues, replicate the issue in our sample with replication steps and a video demonstration? Based on that, we will check and provide you with a better solution quickly.


Please let us know if you need any further assistance on this.



Regards,

KeerthiKaran K V


Attachment: Button_ef5c1001.zip

Loader.
Up arrow icon