rjsf-team/react-jsonschema-form

liveValidate does not work for integer input

Open

#4,038 opened on 2024年1月11日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)TypeScript (13,175 stars) (2,136 forks)batch import
bughelp wanted

説明

Prerequisites

What theme are you using?

core

Version

5.x

Current Behavior

See this playground, liveValidate has no effect on integer properties, you can enter any text there. Maybe related, most themes seem to always use the updown widget instead of the documented input[type=number].

Expected Behavior

Entering something like abc should invalidate immediately when liveValidate is checked

Steps To Reproduce

schema:

{
  "title": "Validation",
  "type": "object",
  "properties": {
    "age": {
      "type": "integer",
      "title": "Age"
    }
  }
}

alternatively: open playground linked above

  1. Set liveValidate: true
  2. Enter abc in integer field
  3. No hint or error appears.

Note that the "Validation" examples work.

Environment

Current playground.

Anything else?

No response

コントリビューターガイド

liveValidate does not work for integer input · rjsf-team/react-jsonschema-form#4038 | Good First Issue