I’m learning ionic 2 and testing components. I’ve put this
HTML in order to test an empty search bar:
<ion-searchbar ></ion-searchbar> <ion-list> <ion-item> </ion-item> </ion-list>
When you type the input is being removed depending on how fast you type or if you first type a key and then hold the key. Consider this:
- Type ‘A’ (any key works )
- immediately after step 1, Hold ‘A’
- check that the first ‘A’ from step 2 gets removed.
You can check this too:
- Type ‘A’
- Type ‘A’ again immediately in a way that you delay the keypress but not too long.
- Check that you will have only just one ‘A’
Seems that could be an issue with keypress and keydown events. Anyway, I think that this is not expected behaviour, as I noted that could happens when you are typing normally (like the second scenario: depends on the time you hold the key that could not be considered a hold event but it hasn’t to be fast enough to be just a keypress)