autocompleter textNoResults

Topic: autocompleter textNoResults

luqeckr free asked 3 years ago

hi, i'm using autocompleter with code like this..

<input type="text" class="completer-input form-control mdb-autocomplete mb-0" autocomplete="off" 
    [(ngModel)]="searchText" name="searchText" (input)="getFilteredData()"
    [mdbAutoCompleter]="auto" placeholder="Type here..">
                <mdb-auto-completer #auto="mdbAutoCompleter" textNoResults="Not found.." >
                  <mdb-option *ngFor="let option of results" [value]="option">
                    <!-- <div class="d-flex flex-column"> -->
                    <!-- </div> -->

the problem is, when the input get focus, the box with textNoResults shows up. the textNoResult should only appear, when the input field get no result..

Arkadiusz Idzikowski staff answered 3 years ago


I tried to recreate this problem on my end but without success. Could you provide more information about reproduction steps and component html code?

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.0.0
  • Device: laptop
  • Browser: Chrome
  • OS: Ubuntu
  • Provided sample code: No
  • Provided link: No