-
Notifications
You must be signed in to change notification settings - Fork 235
Open
Labels
Component: Action buttonSEV 3Issue that cause noticeable errors/minor usability problems which cause confusion or degrade UXIssue that cause noticeable errors/minor usability problems which cause confusion or degrade UXbugSomething isn't workingSomething isn't workingjira ticket createdTODO: Delete label once Jira integration is completeTODO: Delete label once Jira integration is completetriageAn issue needing triageAn issue needing triage
Description
Code of conduct
- I agree to follow this project's code of conduct.
Impacted component(s)
sp-action-button
Library version
1.7.0
Expected behavior
A click on an sp-action-button triggers exactly on event.
Actual behavior
The sp-action-button logs two click events.
One event has "isTrusted = false, the second one has isTrusted true.
This is not so much an issue for regular links (may actually impact analytics), but it's causing duplicate downloads when there is a "download" attribute.
Screenshots
No response
What browsers are you seeing the problem in?
Chrome, Firefox
How can we reproduce this issue?
see sample code below.
Sample code or abstract reproduction which illustrates the problem
<sp-action-button @click=${(e) => console.log(`click handler, event is trusted: ${e.isTrusted}`)}
href="https://partners.adobe.com/channelpartnerassets/assets/public/public_1/aem_assets_dynamic_media_capability_spotlight_ue.pdf"
download="Adobe Experience Manager Assets Dynamic Media Capability Spotlight.pdf">
<sp-icon-download/>
</sp-action-button>
Severity
None
Logs taken while reproducing problem
click handler, event is trusted: false
click handler, event is trusted: true
Would you like to track this issue in Jira?
- Yes, please tell me the ticket number!
Metadata
Metadata
Assignees
Labels
Component: Action buttonSEV 3Issue that cause noticeable errors/minor usability problems which cause confusion or degrade UXIssue that cause noticeable errors/minor usability problems which cause confusion or degrade UXbugSomething isn't workingSomething isn't workingjira ticket createdTODO: Delete label once Jira integration is completeTODO: Delete label once Jira integration is completetriageAn issue needing triageAn issue needing triage