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(HeaderMenu): re-enabled links in submenu #5296

Merged

Conversation

asudoh
Copy link
Contributor

@asudoh asudoh commented Feb 7, 2020

Fixes #4641.

Changelog

Changed

  • event.preventDefault() in the click event handler of <HeaderMenu> now only runs if the <HeaderMenu> itself is clicked on, not on sub-menus.

Testing / Reviewing

Testing should make sure <HeaderMenu> is not broken.

@netlify
Copy link

netlify bot commented Feb 7, 2020

Deploy preview for carbon-elements ready!

Built with commit 3a4f186

https://deploy-preview-5296--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Feb 7, 2020

Deploy preview for carbon-components-react failed.

Built with commit 3a4f186

https://app.netlify.com/sites/carbon-components-react/deploys/5e41f7c1f7574800082baf68

@tw15egan
Copy link
Member

tw15egan commented Feb 7, 2020

Doesn't look like it is coming from this PR, but getting this console warning now when reviewing

Screen Shot 2020-02-07 at 12 19 13 PM

If it is a larger fix we can move it to a separate PR

@asudoh
Copy link
Contributor Author

asudoh commented Feb 10, 2020

@tw15egan You are right that the warning doesn't have to do with this change, but good catch. Fixed.

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

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

looks good to me, submenu links are functioning correctly now

Copy link
Member

@tw15egan tw15egan 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 for taking care of the other issue as well 👍 ✅

@asudoh asudoh merged commit 55f44c9 into carbon-design-system:master Feb 11, 2020
@asudoh asudoh deleted the submenu-link-preventdefault branch February 11, 2020 01:08
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.

<HeaderMenuItem /> href broken when it is a child of <HeaderMenu />
3 participants