Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

The documentation for the Blazor AutoComplete control (https://blazor.syncfusion.com/documentation/autocomplete/native-events) says that it supports a handler for the "onfocus" event. However, this does not seem to be working. A workaround is to handle "onfocusin" instead, because that one does work.

To reproduce:

  • Download the samples from the GitHub page.
  • Open the AutoCompleteSample solution (Blazor-Getting-Started-Examples-main\AutoComplete\BlazorWASM\AutoCompleteSample\AutoCompleteSample.sln).
  • Inject an ILogger into the "client" project's Index page, add an @onfocus attribute to the SfAutoComplete component tag, implement the handler so that it writes something to the log.
  • Test the app, clicking on and off the auto-complete control.
  • The expected output is that every time the control is given focus, a line of text is written to the log. However, no text is written to the log.

NB. The downloadable samples are on version 19.4.0.48 of the SyncFusion NuGet packages, but I have verified that the behaviour is the same on version 22.1.34.

I attach a modified version of Index.razor. This has both "onfocus" and "onblur" handlers. Only the "onblur" handler results in messages being written to the log. I have to make it a .txt file because your file uploader will not accept .razor files.