Closed
Description
Scope: <DESCRIBE SCOPE OF THIS ISSUE, i.e.: PF4 mapper, Form renderer>
Description
When setting dataType=dataTypes.NUMBER and the number users type is negative, the form shows error. I can reproduce on this page: https://data-driven-forms.org/schema/data-types.
Schema
{
fields: [
{
name: "coordinates.lat",
label: "Latitude",
component: componentTypes.TEXT_FIELD,
type: "number",
dataType: dataTypes.NUMBER,
validate: [
{
type: validatorTypes.REQUIRED,
},
],
},
{
name: "coordinates.lon",
label: "Longitude",
component: componentTypes.TEXT_FIELD,
type: "number",
dataType: dataTypes.NUMBER,
validate: [
{
type: validatorTypes.REQUIRED,
},
],
},
],
};
<If it's possible, please provide a schema which reproduces the issue>