You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the NumField component, when a default value exists, it can't be cleared out, but this should be allowed. E.g. When backspacing the last digit left, the value is replaced with the default value. This happens in all the components except in the uniforms-antd component, where the onChange handler is different. uniforms-antd's onChange uniforms-material's onChange
In this playground example, try to backspace the 2 to change it to another number.
The text was updated successfully, but these errors were encountered:
Hi @xormik. It's mostly because AntD has a custom InputNumber component that works differently from <input type="number" />. I do agree that it is a problem though. Another thing is that if you remove the value from using the AntD theme the value becomes '' (and null on blur), which leads to should be number error. Thanks for the report!
In the NumField component, when a default value exists, it can't be cleared out, but this should be allowed. E.g. When backspacing the last digit left, the value is replaced with the default value. This happens in all the components except in the uniforms-antd component, where the onChange handler is different.
uniforms-antd's onChange
uniforms-material's onChange
In this playground example, try to backspace the 2 to change it to another number.
The text was updated successfully, but these errors were encountered: