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.54k stars 265 forks source link

Text area - Exceeded characters not selected #7719

Closed PixelBuilder23 closed 1 year ago

PixelBuilder23 commented 1 year ago

Bug Description

I opened the Text area component with Max Lenght. When I pasted copied text in the text area, characters that are over the limit were not being selected automatically.

Affected Component

ui5-textarea

Expected Behaviour

When a specific number of characters are over the limit (after pasting a text) they should be selected/hightlighted automatically. Screenshot 2023-10-18 at 19 00 26

Isolated Example

No response

Steps to Reproduce

1. 2. 3. ...

Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

v1.18.0

Browser

Chrome

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

yanaminkova commented 1 year ago

Hello @SAP/ui5-webcomponents-topic-rl ,

When the ui5-textarea components is used with defined maxLength and showExceededText set to true, according to the documentation it is expected for the characters exceeding the maxlength value to be selected on paste, which is not happening at the moment. For refference - storybook Max Length example

Could you please confirm what is the expected behaviour of the control in this scenario?

Thanks and Kind regards, Yana