Skip to content

[text-area] Max rows doesn't work if line-height: normal is used for the input field #9212

@jouni

Description

@jouni

Description

If the line-height for the internal input-field part is normal, the maxRows property doesn't have any effect.

Image

Expected outcome

The input field height is constrained to the specified maxRows.

Image

Minimal reproducible example

<style>
  vaadin-text-area::part(input-field) {
    line-height: normal;
  }
</style>
<vaadin-text-area max-rows="2" value="Value value value value value value value value value value value value value"></vaadin-text-area>

Steps to reproduce

Environment

Browsers

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions