Skip to content

fix(v2): Show dropdown instead of a single button when there are two versions#3472

Merged
lex111 merged 1 commit intofacebook:masterfrom
SamChou19815:patch-1
Sep 22, 2020
Merged

fix(v2): Show dropdown instead of a single button when there are two versions#3472
lex111 merged 1 commit intofacebook:masterfrom
SamChou19815:patch-1

Conversation

@SamChou19815
Copy link
Contributor

Motivation

Comment above the code says that We don't want to render a version dropdown with 0 or 1 item. However, the check below also include the case when we have 2 versions. I believe that this is a bug since we still want to show dropdown when there are two versions.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Tested locally with only two versions left: current and alpha-64:

Screen Shot 2020-09-22 at 10 59 36

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Sep 22, 2020
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built without sensitive environment variables with commit 57ef649

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

@SamChou19815 SamChou19815 marked this pull request as ready for review September 22, 2020 15:08
SamChou19815 added a commit to cornell-dti/trends-in-web-dev-website that referenced this pull request Sep 22, 2020
There is a bug in the dropdown component, which I'm fixing in facebook/docusaurus#3472

Meanwhile, I swizzled the buggy component and applied my fix.
Copy link
Contributor

@lex111 lex111 left a comment

Choose a reason for hiding this comment

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

Seems legit

@lex111 lex111 merged commit 0ad8958 into facebook:master Sep 22, 2020
@lex111
Copy link
Contributor

lex111 commented Sep 22, 2020

@SamChou19815 thanks!

@SamChou19815 SamChou19815 deleted the patch-1 branch September 22, 2020 15:38
SamChou19815 added a commit to cornell-dti/trends-in-web-dev-website that referenced this pull request Sep 22, 2020
…le (#131)

There is a bug in the dropdown component, which I'm fixing in facebook/docusaurus#3472

Meanwhile, I swizzled the buggy component and applied my fix.
@slorber
Copy link
Collaborator

slorber commented Sep 23, 2020 via email

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.

5 participants