Skip to content

When we use the #documentContext?.setPropertyValue() method on a textarea, the component does not grow with the content #1197

@floede

Description

@floede

Which exact UI Library version are you using? For example: 1.0.1 - don't just write v1.

16.2.0

Bug summary

At DR our custom extentions for Umbraco, can add values to the different properties through the UmbDocumentContext and the method setPropertyValue().



But when the value changes in the the height is never recalculated. 


What we can see on the source, is that the calculation runs only on initialization of the element, or by input from the user.
We are missing a way to either call a custom event to trigger a recalculation or for the element itself to listen for a value change.

Specifics

No response

Steps to reproduce

Set the content of a to a text longer than the initial height with setPropertyValue().

Notice that the textarea does not grow to match the new content.

Expected result / actual result

I expected the textarea to grow with the content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds triageThis issue has not been tested by a team member yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions