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(v2): dropdown navbar item: validation too strict #3106

Merged
merged 1 commit into from
Jul 24, 2020

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Jul 23, 2020

Motivation

The new validation is too strict and wouldn't allow a valid configuration where the parent dropdown item has no href/to attribute.

The config of this user, which is legit and works in former versions, wouldn't be accepted anymore:
#3067 (comment)

image

…opdown parent to have an associated link (not retrocompatible)
@slorber slorber requested a review from lex111 as a code owner July 23, 2020 17:03
@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Jul 23, 2020
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit 3a927a1

https://deploy-preview-3106--docusaurus-2.netlify.app

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jul 23, 2020
Copy link

@prma85 prma85 left a comment

Choose a reason for hiding this comment

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

nice and clean change 🎉

@slorber
Copy link
Collaborator Author

slorber commented Jul 24, 2020

thanks,

This will still require you to use the # workaround though... will try to see how to solve that with ReactRouter

@slorber slorber merged commit 0ecd71e into master Jul 24, 2020
@yangshun yangshun deleted the slorber/fix-navbar-item-dropdown-parent branch July 26, 2020 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants