autocompleter textNoResults


Topic: autocompleter textNoResults

luqeckr asked 2 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" 
    #searchInput
    [(ngModel)]="searchText" name="searchText" (input)="getFilteredData()"
    (ngModelChange)="search()"
    [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"> -->
                    <strong>{{option}}</strong>
                    <!-- </div> -->
                  </mdb-option>
                </mdb-auto-completer>

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 2 years ago

Hello,

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

Answered

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