Skip to content

Bug - [TextArea] - missing props and auto resize example doesn't work as intented #7834

@Fewwy

Description

@Fewwy

Describe the problem
The docs page for the TextArea is missing props description, and the example that covers the AutoResizing doesn't work
How do you reproduce the problem?

import ReactDOM from 'react-dom';
import "@patternfly/react-core/dist/styles/base.css";
import './fonts.css';

import React from 'react';
import { TextArea } from '@patternfly/react-core';
const text = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
const AutoResizing = () => <TextArea defaultValue={text} aria-label="auto resizing text area example" autoResize />

const rootElement = document.getElementById("root");
ReactDOM.render(<AutoResizing />, rootElement);

Expected behavior
I added the JSX element as in the docs example, and it doesn't resize automatically
Is this issue blocking you?
Yes

Screenshots
image

image

Please advise me on how to make it work.

Metadata

Metadata

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions