Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(progress-indicator): prevent onChange events on disabled items #5921

Merged
merged 2 commits into from
Apr 23, 2020

Conversation

tw15egan
Copy link
Collaborator

Closes #5913

Prevent disabled items from firing the onChange of ProgressIndicator

Changelog

New

  • Made button elements disabled if the prop is added
  • Sets pointer-events: none on disabled elements

Testing / Reviewing

Add onChange handler to ProgressIndicator and click on a disabled item. Make sure the index is not logged.

@tw15egan tw15egan requested a review from a team as a code owner April 23, 2020 17:29
@ghost ghost requested review from aledavila and joshblack April 23, 2020 17:29
@netlify
Copy link

netlify bot commented Apr 23, 2020

Deploy preview for carbon-elements ready!

Built with commit 290b388

https://deploy-preview-5921--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Apr 23, 2020

Deploy preview for carbon-components-react ready!

Built with commit 290b388

https://deploy-preview-5921--carbon-components-react.netlify.app

Copy link
Contributor

@aledavila aledavila left a comment

Choose a reason for hiding this comment

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

lgtm

@tw15egan tw15egan merged commit 543974f into carbon-design-system:master Apr 23, 2020
@tw15egan tw15egan deleted the progress-indicator-fix branch April 28, 2021 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ProgressIndicator] Disabled ProgressStep calls onChange
3 participants