SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.52k stars 263 forks source link

[SF][A11y][ui5-textarea]: growingMaxLines does not work when valueState is Error #8767

Closed i323808 closed 2 months ago

i323808 commented 5 months ago

Bug Description

growingMaxLines dose not work and only one line text is visible when set ui5-textarea properties as below: rows = 1 valueState = Error growing = true growingMaxLines > 1

Affected Component

ui5-textarea

Expected Behaviour

The maximum number of lines should align with the growingMaxLines property.

Isolated Example

No response

Steps to Reproduce

  1. navigate to https://sap.github.io/ui5-webcomponents/playground/?path=/docs/main-text-area--text-area-overview
  2. set rows = 1, valueState = Error, growing = true, growingMaxLines > 1
  3. type text in text area component
  4. only one line text is visible when the number of lines is greater than growingMaxLines

Log Output, Stack Trace or Screenshots

ui5_textarea_growing

No response

Priority

None

UI5 Web Components Version

1.24.0

Browser

Chrome, Edge, Firefox, Safari

Operating System

macOS Sonoma 14.3.1

Additional Context

No response

Organization

No response

Declaration

dimovpetar commented 5 months ago

Hello @ui5-webcomponents-topic-rl,

Seems value state play role here. I have tested with growingMaxLines=5. image Same properties, but with valueState=Success: image

Best regards, Petar