openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Issue with rememberSelections in sap.m.TableSelectDialog after Clear and Cancel actions

Open HellFire03 opened this issue 8 months ago • 1 comments

What is the issue and how can we reproduce it?

Steps to reproduce:

  1. Open the example in JS - Bin
  2. Click on the input field value help icon it will open a TableSelectDialog
  3. Select an item from the dialog — it closes and populates the selected value in the Input field.
  4. Reopen the dialog, click the Clear button (top-right), then click Cancel button (bottom-right). The input field is correctly cleared since no item was selected before closing.
  5. However, when we open the dialog again, I see "Selected: 1" in the header, even though we had cleared selection perviously

Property set for TableSelectDialog in xml view:

rememberSelections = true multiSelect=false showClearButton = true growing = true growingThreshold = 30

Error:

Clear button is not working properly. Even on clearing selection it reappears again on reopening the dialog

Expected behavior:

Once we have cleared the selection and closed the dialog then second time we should see no items selected

Which OpenUI5 version is your project targeting?

1.120

Is the issue device- or browser-specific?

No, this is not device or browser specific issue

Confirmation

  • [x] I have searched the existing issues and reviewed the relevant documentation as well as the API reference.
  • [x] I am not disclosing any internal or sensitive information.

HellFire03 avatar Apr 25 '25 10:04 HellFire03

Hello @HellFire03 , Thank you for sharing this finding. I've created an internal incident DINC0488703. The status of the issue will be updated here in GitHub. Regards, Tsanislav

tsanislavgatev avatar Apr 30 '25 11:04 tsanislavgatev