SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.56k stars 267 forks source link

SF_ACC Click file name of Upload Collection will wrongly trigger click event twice #5743

Closed mydavidzhang closed 2 years ago

mydavidzhang commented 2 years ago

Bug Description

Mouse click file name in ui5-upload-collection will wrongly trigger click event twice.

Expected Behavior

Use mouse click file name should only trigger click event once just like use keyboard Enter/Space key.

Steps to Reproduce

  1. Go to https://snippix.only.sap/#571022 which has create a simple ui5-upload-collection with one item inside it which has clickable file name.
  2. Click that file name
  3. Page and console log will show click count information. Count will be increase twice
  4. Try use enter key to trigger link and will see only increase one for count.

Isolated Example

ui5-upload-collection

Context

Priority

The priority indicates the severity of the issue. To set the appropriate priority consider the following criteria: There are workarounds like use timestamp to defect very close events to avoid duplicated event handling.

Note: The priority might be re-evaluated by the issue processor.

Stakeholder Info (if applicable)

nnaydenow commented 2 years ago

Hello @mydavidzhang,

The issue is fixed with #5642 and it will be available with the next version.

Regards, Nayden