openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.m.UploadCollection selectionChange fired more than once

Open adrian-zguri opened this issue 9 years ago • 4 comments

OpenUI5 version:

  • 1.38.1 (built at 20160503-1007, last change )
  • latest as well Browser/version (+device/version):
  • Google Chrome 56.0.2924.87
  • Firefox 51.0.1 (32-Bit)

Any other tested browsers/devices(OK/FAIL):

URL (minimal example if possible): https://jsbin.com/lesujadupo/edit?html,output

For each uploaded file, the number of times "somehow" that selectionChange is called is +1. So if you upload 3 files, it will be called 3 times.

Steps to reproduce the problem:

  1. Open the JS Bin Url
  2. Upload a file (it will not showed, no real upload)
  3. select 1 of the 3 existing files

What is the expected result? Chrome Console: should be logged only 1 time the:

  • SelectionChange - new Date()

OR Under the UploadCollection there is a Count that goes up by 1 every time the selection changes

What happens instead? Chrome Console: After every file upload, the number of logged "SelectionChange - new Date()" is added by 1.

OR Under the UploadCollection there is a Count that goes up by N every time the selection changes, with N being the number of uploaded files

Any other information? (attach screenshot if possible) grafik

adrian-zguri avatar Mar 07 '17 14:03 adrian-zguri

Hi @adrian-zguri,

Thanks for the ticket. Internal incident 1770060178 has been opened for this issue.

PetyoKostakov avatar Mar 08 '17 14:03 PetyoKostakov

Hi @adrian-zguri , Thanks for the bug report. I'm able to reproduce the issue and found the root cause. Downports to the release will fowllow. Best regards, Oli..

GeneralDuke avatar Mar 08 '17 14:03 GeneralDuke

Happy to hear that. Best regards, adrian.

adrian-zguri avatar Mar 08 '17 15:03 adrian-zguri

Hello @adrian-zguri , the fix is submitted for the master branch. Downports I will start tomorrow. I expect that the fix will be included in 1.38.19. Best regards, Oli..

GeneralDuke avatar Mar 09 '17 17:03 GeneralDuke