Skip to content

Focus on first error not working for radio #4870

@Unknown-bot-sus

Description

@Unknown-bot-sus

Prerequisites

What theme are you using?

shadcn

Version

6.1.0

Current Behavior

When focusOnFirstError is set, it is not scrolling up for radio widgets

Expected Behavior

Scroll up to where the error is

Steps To Reproduce

Playground link

schema

{
  "type": "object",
  "required": [
    "gender"
  ],
  "properties": {
    "gender": {
      "type": "string",
      "enum": [
        "male",
        "female"
      ]
    },
    "firstName": {
      "title": "First name",
      "type": "string"
    },
    "lastName": {
      "title": "Last name",
      "type": "string"
    }
  }
}

uiSchema

{
  "gender": {
    "ui:widget": "radio"
  }
}

Environment

- OS: macOs
- Node: latest
- npm: pnpm

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions