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!

2
Votes

in the dropdownlist component, the select event triggers multiple times when rendering in a client-side web assembly project.

<SfDropDownList TValue="string" TItem="Data" Placeholder="e.g: Aero" AllowFiltering=true IgnoreAccent=true DataSource="@Country">

    <DropDownListFieldSettings Value="Name"></DropDownListFieldSettings>

    <DropDownListEvents TValue="string" OnValueSelect="DataSelected"></DropDownListEvents>

</SfDropDownList>

<br />

<input type="text" @bind-value="Count" />



@code {

    public int Count { get; set; } = 0;

    public class Data

    {

        public string Name { get; set; }

    }


    public StringBuilder events = new StringBuilder();


    List<Data> Country = new List<Data>

{

        new Data() { Name = "Aeróbics"},

        new Data() { Name = "Aeróbics en Agua"},

        new Data() { Name = "Aerografía"},

        new Data() { Name = "Águilas"},

        new Data() { Name = "Ajedrez"},

        new Data() { Name = "Ala Delta"},

        new Data() { Name = "Álbumes de Música"},

        new Data() { Name = "Alusivos"},

        new Data() { Name = "Análisis de Escritura a Mano"},

    };


    private void DataSelected(Syncfusion.Blazor.DropDowns.SelectEventArgs args)

    {

        Count++;

    }

}

Replication procedure :

1. Run the sample with the above code in the client-side hosted sample.

2. open the popup and choose one value

3. check the event count in the input element.

4. again open the popup and select the any one value

5. check the event cont now.

Expected: input element count should be 2

Output: input element count is 7