Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Searchbar issue with event keypress or keyup

$
0
0

I would like to know if I am the only one that noticed that when calling a function for keypress or keyup, the first time the character entered is not returned. The second character entered will trigger again the function, but with the previous character.

  <ion-searchbar primary [(ngModel)]="searchQuery"
                  (keyup)="updateList()"
                  show-cancel="true"
                  placeholder="Search">
  </ion-searchbar>

If I change it for "input" instead of "keyup" it works. Normal behavior?


Viewing all articles
Browse latest Browse all 228595

Trending Articles