ComboBox OnInput stopped after pressing on clear X

<SfComboBox TValue="string" TItem="string"
AllowCustom="true"
                                   DataSource = "@new string[] {"A", "B"}"
OnInput="OnInput">

protected void OnInput(ChangeEventArgs args)
{
                    // breakpoint here
}


OnInput works until I press on clear button X.

3 Replies 1 reply marked as answer

JM Jeyanth Muthu Pratheeban Sankara Subramanian Syncfusion Team August 3, 2020 02:33 PM UTC

Hi Andrey,

Greetings from Syncfusion support.

We have checked your query. Unfortunately, we could not reproduce the reported issue and OnInput event is working good at our end even after cleared using clear button. Here we have attached the ensured sample and video demonstration. Kindly check the same and revert back if you need any further assistance on this.

Sample Link       :  https://www.syncfusion.com/downloads/support/directtrac/general/ze/Combobox-1876121931 



MA Mr Andrey Voronov August 4, 2020 07:37 AM UTC

Looks like ComboBox works when there is only one control, I still trying to find out why OnInput stopped working when I have many controls.

Meanwhile can you investigate why e-success style is not applying from OnInput :

<Syncfusion.Blazor.Inputs.SfTextBox CssClass="@cssclasstb" OnInput="OnInputTb"></Syncfusion.Blazor.Inputs.SfTextBox>

public string cssclasstb = "e-error";

protected void OnInputTb(ChangeEventArgs args)
{
var value = (args.Value ?? String.Empty).ToString();
if (value.Length > 0)
cssclasstb = "e-success";
else
cssclasstb = "e-error";
StateHasChanged();
}



JM Jeyanth Muthu Pratheeban Sankara Subramanian Syncfusion Team August 7, 2020 10:36 AM UTC

Hi Andrey,

Thanks for you update.

We have checked the e-success style not applied to the control and we considered ‘Existing Css class not removed when adding new class’ as a bug from our end.  We will include the fix for this issue in August 19th Patch release. You can track the status of this issue using below feedback link.

Feedback Link : https://www.syncfusion.com/feedback/16748/

We appreciate your patience until then.

Regards,
Jeyanth. 


Marked as answer
Loader.
Up arrow icon