I am facing a strange issue with the MaskNumber block. Essentially we are trying to store decimals in the database but we need a way to distinguish between zero and not filling out the input, so we are using text as the datatype for the column, and using the input mask so that our users wont accidentally fill it in with say "e0" instead of 30. The issue is that when the Number mask component is applied to the input it doesn't allow us to type zero: '0' the only way we can get a zero value is by first typing period: '.' then we get '0.0' to show up in the input box.I have attached some sample code below. I cannot provide the OML because it's a client project.
One quick fix could be, even if user types 0.50, but before saving , the value can be customized.
On OnChange client action of the component, check if "." is entered, if yes: append "0"