Closed manishcharsap closed 2 years ago
Hello @SAP/ui5-webcomponents-topic-rl the issue is reproducible in the master. If you have several tokens and you select one, but press the "X" to delete another - the selected one gets removed, while the one you press the "X"of should be removed
@ilhan007 @ivoplashkov, we're having a fairly similar issue with SuccessFactors, the only difference being it doesn't happen only when selecting an item, but when pressing directly the "x".
Codesandbox: https://codesandbox.io/s/ui5-webcomponents-forked-yc1qbt?file=/src/index.js
Can you please let me know if this PR will fix this issue or if I should file another Issue? This is a critical defect for us. Thanks!
Bug Description
getting incorrect key from "MultiInput" when click on delete icon.
Expected Behavior
ex : 1,2,3 (these are selected token) you select first token in list then click on third token delete icon. now what happening we are received first token key not third token key in onTokenDelete event.
Steps to Reproduce
ex : 1,2,3 (these are selected token) you select first token in list then click on third token delete icon. now what happening we are received first token key not third token key in onTokenDelete event.
Isolated Example
If possible, please provide an isolated example by forking CodeSandbox.
Context
Log Output / Stack Trace / Screenshots
Priority
The priority indicates the severity of the issue. To set the appropriate priority consider the following criteria:
Note: The priority might be re-evaluated by the issue processor.
Stakeholder Info (if applicable)