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!>
Thanks for joining our community and helping improve Syncfusion products!
Blur event is triggered while open the popup for first time.
Replication procedure:
1. Focus the combobox clicking into textbox part.
2. Click on dropdown button.
3. Expected: Focus event count should be 1.
4. Actual: Blur is triggered and again Focus event were raised after you clicked on drop button even though the combobox is already focused.
@using System.Diagnostics@using Syncfusion.Blazor.DropDowns
<p>Combobox Focus event triggered count:@FocusCount</p>
<p>Combobox Blur event triggered count:@BlurCount</p>
<SfComboBox TValue="string" TItem="string">
<ComboBoxEvents TValue="string" TItem="string" Blur="OnBlur" Focus="OnFocus"> </ComboBoxEvents>
</SfComboBox>
@code {
public int FocusCount { get; set; }
public int BlurCount { get; set; }
public void OnBlur()
{
BlurCount++;
Debug.WriteLine("Blur");
}
public void OnFocus()
{
Debug.WriteLine("Focus");
FocusCount++;
}
}