Skip to content

[chakra-ui] ui:options rows not applied for textarea element #4070

@ldirer

Description

@ldirer

Prerequisites

What theme are you using?

chakra-ui

Version

5.x

Current Behavior

Using a uiSchema to set the number of rows of a textarea works as expected with many themes, but not with chakra-ui.

Example uiSchema:

{
  "longText": {
    "ui:widget": "textarea",
    "ui:rows": 10
  }
}

Expected Behavior

A textarea with 10 rows is expected when the ui schema specifies it, as in the playground link below.

Steps To Reproduce

Playground link

Anything else?

Looks like a one line change, I prefer to open an issue first but happy to offer a PR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions