Skip to content

Commit

Permalink
Fix: Make 'ui:rows' option work with chakra-ui for textarea elements r…
Browse files Browse the repository at this point in the history
  • Loading branch information
ldirer committed Feb 4, 2024
1 parent 0782878 commit 152937c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ should change the heading of the (upcoming) version to include a major version b
- Added support for `anyOf`/`oneOf` in `uiSchema`s in the `MultiSchemaField`, fixing [#4039](https://github.com/rjsf-team/react-jsonschema-form/issues/4039)
- Fix potential XSS vulnerability in the preview button of FileWidget, fixing [#4057](https://github.com/rjsf-team/react-jsonschema-form/issues/4057)

## @rjsf/chakra-ui

- Add support for `UiSchema` `"ui:rows"` option for `textarea` elements, fixing [#4070](https://github.com/rjsf-team/react-jsonschema-form/issues/4070).

## @rjsf/utils

- [#4024](https://github.com/rjsf-team/react-jsonschema-form/issues/4024) Added `base64` to support `encoding` and `decoding` using the `UTF-8` charset to support the characters out of the `Latin1` range.
Expand Down
1 change: 1 addition & 0 deletions packages/chakra-ui/src/TextareaWidget/TextareaWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default function TextareaWidget<
onChange={_onChange}
onBlur={_onBlur}
onFocus={_onFocus}
rows={options.rows}
aria-describedby={ariaDescribedByIds<T>(id)}
/>
</FormControl>
Expand Down

0 comments on commit 152937c

Please sign in to comment.