Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

fix(Header): Open UserAccountMenu onChange not onClick #587

Merged
merged 1 commit into from
Dec 6, 2018

Conversation

michaeltaranto
Copy link
Contributor

Given the UserAccountMenu is using a checkbox hack so it works without javascript, the behaviour should be an onChange handler on the checkbox rather than a click handler on the label. React was throwing an error as the checkbox had a checked prop without a corresponding onChange.

Copy link
Contributor

@mattcompiles mattcompiles left a comment

Choose a reason for hiding this comment

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

Nice find

Copy link
Member

@markdalgleish markdalgleish left a comment

Choose a reason for hiding this comment

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

Nice one 👏🏻

@michaeltaranto michaeltaranto merged commit 3d662e8 into master Dec 6, 2018
@michaeltaranto michaeltaranto deleted the fix-header-change-event branch December 6, 2018 05:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants