Fixes schema fields not properly setting text inputs to numbers (#214)

This commit is contained in:
Chris Anderson 2023-07-01 16:24:08 -05:00 committed by GitHub
parent 331f30ba1e
commit 9b4da2a08e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,6 +52,7 @@ export default function SchemaFields({ title, description, parent, form, schema
key={key}
form={form}
name={`${parent}.${key}`}
type={item.type === 'number' ? 'number' : 'text'}
label={title}
subtitle={item.description}
required={required}