Hello Syncfusion support,
I have run into the issue during a custom cascading autocomplete process within the Blazor SfAutoComplete user interface events.
The issues occurs when you finish typing into an autocomplete input box, which we will call ACInputBoxOne from now on, and press the enter key. Which then moves the input cursor to the next input, which we will call
ACInputBoxTwo. This all works well, however, when you re-focus the ACInputBoxOne from ACInputBoxTwo with a ACInputBoxOne.FocusAsync() call, it does refocus, but the Enter key no longer works until the text value changes. I need to find out how to detect when the Enter key is pressed again without the user modifying the text upon refocus.
Here is an example of the code component I use. I have tried about every possible event found in the documentation (
Events in Blazor AutoComplete Component | Syncfusion
) without success.
Here is an example of the ACInputBoxOne;
<div class="w-100">
<div class="input-group">
<span class="input-group-text" id="item-input-name"><strong><span class="text-danger">*</span> Item Name:</strong></span>
<div class="form-control">
<SfAutoComplete @ref="ACInputBoxOne"
TItem="NSItem"
TValue="string"
AllowFiltering="true"
AllowCustom="true"
DataSource="@itemList"
CssClass="form-control"
@bind-value="itemName">
<AutoCompleteEvents TItem="NSItem" TValue="string"
ValueChange="ItemNameDropdownValueChanged">
</AutoCompleteEvents>
<AutoCompleteFieldSettings Text="Name" Value="Name">
</AutoCompleteFieldSettings>
</SfAutoComplete>
</div>
</div>
</div>
Thanks for all you help,
Mike