ui5-webcomponents
ui5-webcomponents copied to clipboard
[ui5-mulitiinput] Free input delete doesn't work properly
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
- Type any text as free input
- Select the complete text via mouse or double click or 'CMD + A'.
- 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.
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