Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typeahead search text dissapearing from search box after displaying results in v 4.7.0

See original GitHub issue

Please 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”>

                                                <div class="bg-dark">
                                                    <p>No results found. </p>

                                                <div class="bg-dark">

                                                    @if (selectedItem != null && !string.IsNullOrWhiteSpace(selectedItem.phn_id))
                                                        <PhnResultComponent PhnWithEncounters="@selectedItem"> </PhnResultComponent>

                                                <div class="bg-dark">

                                                    @if (context != null)
                                                        <PhnResultComponent PhnWithEncounters="@context"> </PhnResultComponent>




Issue Analytics

  • State:open
  • Created a year ago
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

BeyondDefinitioncommented, Oct 11, 2022

Also may be this make v7 much slower than 6.0.1. On previouse version modals closing instantly and on latest they have delay like 0.5 second.

That is by design in v7.

I think this is a separate issue and should definitely be tracked on the Blazored.Modam side.

Agreed, see

SSchulze1989commented, Oct 9, 2022

Looking at the changes from #217 the problem is rather obvious:

protected override void OnParametersSet()

private void Initialize()
    SearchText = "";
    IsShowingSuggestions = false;
    IsShowingMask = Value != null;

The component Initialize() Method is called everytime in OnParameterSet() but this method can fire multiple times, even when the component is active. It seems that including

    public BlazoredModalInstance? ModalInstance { get; set; }

is 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found