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
The selected keys of other entries in the multi combo box vanish.
While deleting the row, I splice the data based on the index of the row to be deleted.
I save the remaining data back in the model.
after saving, the data in the model changes ( not the data that I asked it to save).
What is the expected result?
The selection of the remaining multi combo boxes should be retained
What happens instead?
The selection is cleared because the data I ask the model to save is not the same data it saves
Any other information? (attach screenshot if possible)
The data I want the model to save.
After deleting the first row, second row should have selected keys as 4,5,6 but after saving the data, the data is changed and the selected keys are 1,2,3 which are of the row which is deleted, because of this all the keys which were previously selected are being deleted
The same thing happens with second row, the keys should be retained and not deleted according to my model.
Wanted to know why the selectedKeys are being updated from the data of the deleted row and if there is a way to prevent this from happening.
The text was updated successfully, but these errors were encountered:
I suspect this issue has something with the order UI5 updates the controls upon bindings when a row is deleted (could also be something else). This may be causing the MultiComboBox to temporarily retain the binding context of the deleted row, resulting in mismatched selectedKeys.
The team has been informed about this behavior and will investigate further. They will get back to you with updates. Internal reference: DINC0334625
While you wait, and if this is urgent, you can try the following workaround:
Clear and Reset the Model
Before updating the model, clear it to ensure all bindings are reset:
These solutions should help retain the selectedKeys in the MultiComboBox until a permanent fix is available. Let me know if you need help implementing any of these!
OpenUI5 version:
1.129.0
URL (minimal example if possible):
https://jsbin.com/jopifew/edit?html,js,output
(Snippix: 745391)
Steps to reproduce the problem:
What is the expected result?
The selection of the remaining multi combo boxes should be retained
What happens instead?
The selection is cleared because the data I ask the model to save is not the same data it saves
Any other information? (attach screenshot if possible)
The data I want the model to save.
After deleting the first row, second row should have selected keys as 4,5,6 but after saving the data, the data is changed and the selected keys are 1,2,3 which are of the row which is deleted, because of this all the keys which were previously selected are being deleted
The same thing happens with second row, the keys should be retained and not deleted according to my model.
Wanted to know why the selectedKeys are being updated from the data of the deleted row and if there is a way to prevent this from happening.
The text was updated successfully, but these errors were encountered: