Typeahead search text dissapearing from search box after displaying results in v 4.7.0
See original GitHub issuePlease see attached screenshots. This behavior came after updating to version 4.7.0
`<div class="ml-1 col-sm-12 col-md-12 col-lg-12"> <BlazoredTypeahead SearchMethod=“SearchCDMS” MinimumLength=“1” Debounce=“1000” placeholder=“start typing to get results…” @bind-Value=“selectedItem”>
<NotFoundTemplate>
<div class="bg-dark">
<p>No results found. </p>
</div>
</NotFoundTemplate>
<SelectedTemplate>
<div class="bg-dark">
@if (selectedItem != null && !string.IsNullOrWhiteSpace(selectedItem.phn_id))
{
<PhnResultComponent PhnWithEncounters="@selectedItem"> </PhnResultComponent>
}
</div>
</SelectedTemplate>
<ResultTemplate>
<div class="bg-dark">
@if (context != null)
{
<PhnResultComponent PhnWithEncounters="@context"> </PhnResultComponent>
}
</div>
</ResultTemplate>
</BlazoredTypeahead>
</div>`
Issue Analytics
- State:
- Created a year ago
- Comments:14 (1 by maintainers)
Top Results From Across the Web
Typeahead value disappears from field after selecting value
I am using typeahead search and when I search and select an item, the item selected disappears from the field. How can I...
Read more >Autocomplete no results behaviour
Clicking outside of the suggestions box and text input closes the suggestions box. If the text input is not empty, focusing on it...
Read more >Text disappearing in Search box - Power Platform Community
I have created a power app with a search box.My search box is working but the problem is when I hover off the...
Read more >Magically Disappearing Default Search Text
A much cleaner way of presenting a search box is with some default text inside the input field that automatically disappears when the...
Read more >windows 7 - Notepad++ search box has disappeared
I inadvertently detached the search box from the main Notepad++ window. Now that I am using a different multiple display configuration, I can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That is by design in v7.
Agreed, see https://github.com/Blazored/Modal/issues/459
Looking at the changes from #217 the problem is rather obvious:
The component
Initialize()
Method is called everytime inOnParameterSet()
but this method can fire multiple times, even when the component is active. It seems that includingis creating such a condition, where the parameter will bubble down and the
OnParametersSet()
Method is called after every input.I think the necessity of the Initialize call should be looked at and it needs to be prevented to fire repeatedly after the component has been initialized already.