ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[ui5-mulitiinput] Free input delete doesn't work properly

Open clemai opened this issue 9 months ago • 1 comments

Bug Description

Under specific circumstances it's not possible to delete the free text within the Multiinput component.

Affected Component

ui5-multiinput

Expected Behaviour

I would expect that I am always able to delete selected text via pressing the backspace key.

Isolated Example

https://sap.github.io/ui5-webcomponents/components/MultiInput/

Steps to Reproduce

  1. Type any text as free input
  2. Select the complete text via mouse or double click or 'CMD + A'.
  3. Press the backspace key.

The last token is focused, but text stays in the input. The issue only occurs when there is at least one token.

Log Output, Stack Trace or Screenshots

No response

Priority

Medium

UI5 Web Components Version

1.24.0

Browser

Chrome

Operating System

Mac

Additional Context

No response

Organization

SAP SIX Technologies

Declaration

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

clemai avatar May 07 '24 11:05 clemai

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

When we have ui5-multi-input with tokens and text, if we select the text via Ctrl/Cmd + A and try to delete it via backspace - the text is not deleted but the focus is moved to the last token instead. https://sap.github.io/ui5-webcomponents/components/MultiInput/ - the first sample is appropriate for testing.

Could you please look over? Thank you in advance!

Kind Regards, Niya

niyap avatar May 08 '24 05:05 niyap