Skip to content

Controlled TextField with multiline and autoAdjustHeight does not adjust when setting value via state #3941

Description

@nero120

Bug Report

  • Package version(s): Latest

Are you willing to submit a PR to fix? Yes

Describe the issue:

When using a TextField as a controlled component (where the value prop has been set to a state variable) with multiline and autoAdjustHeight enabled, the height does not automatically adjust when the value state variable changes.

The height only updates once the user manually enters text in the field.

If applicable, please provide a codepen repro:

https://codepen.io/nero120/pen/LQWMOe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions