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

Blur Object args is null

My autocomplete seems to work in every other way.

                    
                    <SfAutoComplete TValue="string"
                                TItem="CropModel"
                                Placeholder="Any part of Crop Name"
                                DataSource="@crops"
                                Autofill=true
                                Highlight=true
                                @bind-Value="@pendingAssessment.CropCombined"
                                style="@validCrop">
                        <AutoCompleteEvents TItem="CropModel" TValue="string" Blur="@OnCropBlur"></AutoCompleteEvents>
                        <AutoCompleteFieldSettings Text="Combined" Value="Combined" />
                    </SfAutoComplete>


        private void OnCropBlur(Object args)
        {
            var x = args;
        }


After selecting an item and tabbing off, args is null.

What am I doing wrong?



1 Reply

SP Sureshkumar P Syncfusion Team March 15, 2023 12:56 PM UTC

Hi Keith,

We have no argument support for the blur event. If you want to get the autocomplete component selected value after value selected, then you can use our ValueChange event.

To know more about the ValueChange event, refer to the documentation: https://blazor.syncfusion.com/documentation/autocomplete/events#valuechange

Regards,

Sureshkumar P


Loader.
Up arrow icon