You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pasting content does not trigger the Filter Feature.
If a user triggers the onInput via typing . The items get filtered based on input .
However this is not the case when the user pastes the same string or a part of the string
eg. If the list of items ["Luck","LuckLuck","Item1","Item2","Object1","Object2"] and he starts typing in Luc , The items ["Luck","LuckLuck"] are filtered out. This is not consistent while pasting Luc.
Pasting content does not trigger state change
Incase a user adds a feature where he can add an element that does not exist in the list of items. He cannot paste some text and press enter.(My issue)
Pasting content twice does not paste twice. (because the state has not been changed)
Affected Component
MultiComboBox
Expected Behaviour
Pasting content should update the internal state
Lets say i paste Luck then i paste Lu i want LuckLu to be displayed in the input ### field.
Currently the Luck is replaced by Lu.
It should also filter the items accordingly.
Enter Key press should be registered as an event to implement this
Incase a user adds a feature where he can add an element that does not exist in the list of items. He cannot paste some text and press enter.(My issue)
If a user adds an element via paste that does not exist in the options. The he cant press enter and add it as a value . But if he adds a space after it . The Enter Key will fire an onChange input and the item is added . If the space is not added ,the Enter Key does not have a registered event . (Most likely because the internal state is not updated onPaste).
The issue is reproduced as described by the reporter, it can also be reproduced in our test page.
I don' t think this has been implemented yet, as we only have logic for tokenizing the value if pasted from a spreadsheet. I couldn't find a clear interaction guidelines on how exactly should the component behave upon pasting, but in UI5, once the value is pasted, the popover is opened and the suggestions are filtered as expected by the reporter.
Could you please have a look?
Best regards,
Ivaylo
Uh oh!
There was an error while loading. Please reload this page.
Bug Description
["Luck","LuckLuck","Item1","Item2","Object1","Object2"]
and he starts typing inLuc
, The items["Luck","LuckLuck"]
are filtered out. This is not consistent while pastingLuc
.Affected Component
MultiComboBox
Expected Behaviour
Luck
then i pasteLu
i wantLuckLu
to be displayed in the input ### field.Luck
is replaced byLu
.Isolated Example
https://stackblitz.com/edit/js-ykkom8?file=index.html
Steps to Reproduce
Luck
in your clipboardLuckLuck
is not displayed.allowCustomValues
is set totrue
Log Output, Stack Trace or Screenshots
ui-5.paste.mp4
Priority
High
UI5 Web Components Version
1.22.1
Browser
Chrome
Operating System
Windows
Additional Context
No response
Organization
SAP Labs India
Declaration
The text was updated successfully, but these errors were encountered: