We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

onkeypress is fired but onkeyup is not on SfComboBox

Dear 

I copied sample code as in https://blazor.syncfusion.com/documentation/combobox/native-events, but only get onkeypress fired on SfCombobox. Changed onkeypress to onkeyup and nothing happened. 


Attachment: BlazorApp1_ee935c9a.rar

2 Replies

TH Thinh April 27, 2023 08:49 AM UTC

Also, I don't want users have to type Shift + Space to enter space character, just use Space key.



UD UdhayaKumar Duraisamy Syncfusion Team May 10, 2023 02:39 PM UTC

Hello Thinh,


Query 1:

I copied sample code as in https://blazor.syncfusion.com/documentation/combobox/native-events , but only get onkeypress fired on SfCombobox. Changed onkeypress to onkeyup and nothing happened.

 

We have used the keyup event for internal functionalities such as filtering, so it is not available for use in the application. However, there are other events, such as input, keypressed, or keydown events, that perform similar functions. You can use these events to meet your requirements.

 

Also, we will update our documentation and refresh it in any one of our upcoming releases.

 

If you still want to use the native onkeyup event with the ComboBox component, please share your use case scenario so that we can proceed further and provide you with a prompt solution.


Query 2:

Also, I don't want users have to type Shift + Space to enter space character, just use Space key.

 

We would like to inform you that we have fixed the reported issue "Unable to enter a space character in the input field of the dropdown components" in the 21.2.3 release. Therefore, we suggest that you upgrade to our latest NuGet version to resolve the reported issue on your end.


Regards,

Udhaya Kumar D


Loader.
Live Chat Icon For mobile
Up arrow icon