Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

fix(button): prevent event propagation to children of disabled buttons #712

Merged
merged 1 commit into from
Oct 11, 2021

Conversation

andy-blum
Copy link
Member

Related Ticket(s)

Fixes #693

Description

Adds a hostlistener to the button component that uses the capture phase to prevent click propagation to child elements

Changelog

Changed

  • disabled buttons prevent click propagation to their child elements

@andy-blum andy-blum requested a review from a team as a code owner October 11, 2021 14:53
@andy-blum andy-blum requested review from BrunnoM7, annawen1 and skuruvil and removed request for a team October 11, 2021 14:53
@andy-blum
Copy link
Member Author

cc: @kennylam

@ibmdotcom-bot
Copy link
Contributor

@ibmdotcom-bot
Copy link
Contributor

@ibmdotcom-bot
Copy link
Contributor

Copy link
Member

@kennylam kennylam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks @andy-blum!

@kennylam kennylam added the Ready to merge Label for the pull requests that are ready to merge label Oct 11, 2021
@kodiakhq kodiakhq bot merged commit 72dd706 into carbon-design-system:master Oct 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
hacktoberfest-accepted package: carbon web components Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Button] Disabled buttons emit click event - DDS consulting
3 participants