We have an input type = "number", and we set the method onChange.
The default value for input is 0.
Then we change the value programmatically to say: 10.
Now we again change the value to 0.
The method is onChangenot called when manually applied. I think that since the event was not triggered when we programmatically changed our value to 10. Thus, the control considers that the value is still 0.
This only happens when I manually set the value to the value that it had before the program change. If I use any other value to make changes manually, the event onChangefires correctly.
source
share