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
User/password (if required and possible - do not post any confidential information here):
not required
Steps to reproduce the problem:
Run the snippix provided
Delete the first entry in the table
The selected keys of other entries in the multi combo box vanish
While deleting the row I splice the json 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
Browser/version (+device/version): google chrome
Any other tested browsers/devices(OK/FAIL): FAIL
URL (minimal example if possible):
745391
User/password (if required and possible - do not post any confidential information here):
not required
Steps to reproduce the problem:
What is the expected result?
What happens instead?
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: