Skip to content

[TextArea] readonly should not change element size with showExceededText #13673

@wvudako

Description

@wvudako

Is your feature request related to a problem?

Setup: Textarea with showExceededText shows a span with remaining characters below
Trigger: When settings readonly that span is hidden and resizes the element
Issue: If readonly is not static but toggled the element resizes and moves everything below

https://ui5.github.io/webcomponents-react/v2/?path=/story/inputs-textarea--default&args=readonly:!false;showExceededText:!true;maxlength:111

Describe the solution you'd like

Element should not resize if readonly is toggled

Describe alternatives you've considered

Our solution is to set display to hidden instead of none on the span. This is in our opinion a good solution as you would only set show showExceededText if readonly can be toggled and therefore would not waste any space if readonly was always true
Some other placeholder text would be suitable as well

Additional Context

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    Status
    New Issues
    Status
    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions