Can't use preventDefault in combination with handling event

I want to do

@onkeydown="keyDown" @onkeydown:preventDefault="preventKeyDownDefault"

@code
{
     private bool preventKeyDownDefault { get; set; }
}

I get the error

The component parameter 'onkeydown' is used two or more times for this component. Parameters must be unique (case-insensitive). 

When I use the normal Input component I am able to do this. 

Best regards, Jaap



1 Reply

PM Ponmani Murugaiyan Syncfusion Team June 1, 2020 12:00 PM UTC

Hi Jaap, 

Thanks for your patience. 

We would like to inform you that, currently we didn’t have the support for PreventDefault actions in Blazor Textbox. We have logged as a feature request for your reported issue “Support for PreventDefault actions” in our end. The feature will be included in Volume2 release, which is expected to be rolled out on end June, 2020. We appreciate your patience until then. 

You can track the status of the reported issue in the below feedback link. 

 
Regards, 
Ponmani M 


Loader.
Up arrow icon