Open AncientGrief opened 3 years ago
OnSelectedItemChanged get's triggered twice when clicking an item with the mouse or using the Enter button:
<TypeaheadInput id="in1" class="form-control bg-dark" placeholder="@("Add Item ...")" @ref="refAddItemInput" Data="DataProvider.Items" LabelPropertySelector="x => x.Name" @bind-Value="@AddItemInput" SelectOnBlur="false" OnInput="@(text => {SelectedItemToAdd = null; typeaheadInputValue = text;})" TItem="Item" OnSelectedItemChanged="OnAddItem"> <ItemTemplate> <div> <label>@context.Name</label> </div> </ItemTemplate> </TypeaheadInput> ... private void OnAddItem(Item item) { Model.AddItemToActiveStash(item); }
Hi @AncientGrief, sorry for the late answer I was sick.
Yes checked it and it looks there is a double event triggering for OnSelectedItemChanged. Will resolve this in next release. Thanks.
OnSelectedItemChanged
OnSelectedItemChanged get's triggered twice when clicking an item with the mouse or using the Enter button: