Hello,
This is an odd one and I wondered if anyone had encountered it before. I'm using the modern number control in canvas apps and I noticed that it seems to reset to zero on exit *sometimes*. It's not consistent, though I think it might be alternate uses. And it's not all the number controls I'm using! Worse, although it resets the displayed value to zero, the stored value is actually what was entered. Image below to demonstrate:
nmwDefectQuantity is showing 0, but a text box set to show nmrDefectQuantity.value is showing 3.
This would almost be ok if the Collect command on the button next to it collected 3 and then reset the field, but in fact it collects 0.
I suspect I'm going to have to revert to classic controls, but it's really annoying and it clearly shouldn't do this.