Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Ion-input change not being fired on clearInput

$
0
0

Hi, I have this weird problem. I have a ion-input defined like this:

<ion-input id="songNoId" type="number" clearInput="true" max="999" min = "0" step="1" (ionFocus)="checkFocus($event)" (change)="numberChanged()" (input)="checkInput($event)" [(ngModel)]="myBumber"></ion-input>

As you can see, numberChanged() is supposed to be called, when the value changes. Well, it is. But if I clear the input by clicking the clearInput button (the cross icon on the right side of the input), this function is not called.

This is very weird mostly because I am just not able to google anything on the topic, whereas I would expect there to be a lot of questions on such a basic thing.

What am I doing wrong?

Thanks!

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>