Strange bug/behavior with number inputs in Angular app
I'm working on Angular 8 web app (abismal monorepo), it is internal tool for managing payments, encashments, etc.
It has quite a few number inputs, all of them allowed to take as value only integers.
Recently i started getting reports from users that sometimes when they fill in value and submit it (add to basket, submit amount), the end value is different from what they initially filled in (the difference is reported to be 1 or two, and mostly towards down).
We do not have any rounding logic, any conversions, any floating point number, nothing. Inputs are just pure integer inputs.
I'm already starting to pull my hairs out from this issue and only sensible solution for me is to fully disable any control on the number inputs (keyboard arrows, mouse wheel control), make them text inputs and add pattern validation.
What else there can be? What am i missing?
Also, the users of this app are not very good with tech, sometimes they even let website open for weeks without refreshing it and complain that latest changes are not present at their end.
For now this input issue/solution seems only option which makes sense and seem real.