Skip to content

Conversation

moonjy1993
Copy link
Contributor

@moonjy1993 moonjy1993 commented Apr 18, 2019

What does it do?

This adds a new prop: showDropdownAlways, and this disables the toggling of showDropdown when the user clicks search box.

Fixes # (issue)

This closes issue #239.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • Updated documentation (if applicable)
  • Added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • My changes generate no new warnings
  • Added myself to contributors table
  • I have updated docs/bundle.js file (ran yarn build:docs and checked in the new bundle.js file)

@coveralls
Copy link

coveralls commented Apr 18, 2019

Pull Request Test Coverage Report for Build 1089

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 95.775%

Totals Coverage Status
Change from base Build 1080: 0.2%
Covered Lines: 357
Relevant Lines: 364

💛 - Coveralls

@moonjy1993 moonjy1993 force-pushed the develop branch 2 times, most recently from 5ece68a to a83fddc Compare April 22, 2019 15:10
@moonjy1993 moonjy1993 changed the title Accept DropdownAlways as a props feat: Accept DropdownAlways as a props Apr 22, 2019
@moonjy1993 moonjy1993 force-pushed the develop branch 2 times, most recently from c0c2f1a to 1727cde Compare April 22, 2019 15:16
moonjy1993 added a commit to moonjy1993/react-dropdown-tree-select that referenced this pull request Apr 22, 2019
@moonjy1993 moonjy1993 changed the title feat: Accept DropdownAlways as a props Accept DropdownAlways as a props Apr 22, 2019
@moonjy1993 moonjy1993 changed the title Accept DropdownAlways as a props feat: Accept DropdownAlways as a props Apr 22, 2019
@mrchief
Copy link
Collaborator

mrchief commented Apr 22, 2019

@moonjy1993 Thanks for submitting this. There are a few things we need to do before this PR can be merged:

  • Add unit tests for newly added functionality
  • Update Readme for the new prop
  • Update the PR description according to the checklist.

@ellinge
Copy link
Collaborator

ellinge commented Apr 22, 2019

Probably should think about bundling this as well.
Change showDropdown to ’onfocus’ (default) | ’initial’ | ’always’ or something similar instead?

@moonjy1993
Copy link
Contributor Author

@ellinge
but what happens if the user who's already using showDropdown to true in their code?

@mrchief
Copy link
Collaborator

mrchief commented Apr 22, 2019

Probably should think about bundling this as well.
Change showDropdown to ’onfocus’ (default) | ’initial’ | ’always’ or something similar instead?

Yes, but we can make that part of #242

but what happens if the user who's already using showDropdown to true in their code?

They would need a code update when they migrate to the new version, which is why it's a separate release.

@moonjy1993
Copy link
Contributor Author

moonjy1993 commented Apr 22, 2019

@mrchief okay. so I have updated the index.test.js and readMe files. will include showDropdownAlways for now, since you said the prop bundling will happen in other PR.

@ellinge
Copy link
Collaborator

ellinge commented Apr 22, 2019

The typescript typings (.d.ts) needs an update as well. It’s a very newly added addition so there’s no checklist or similar which ensures this yet.

@moonjy1993
Copy link
Contributor Author

@ellinge okay. just modified d.ts file.

@mrchief
Copy link
Collaborator

mrchief commented Apr 22, 2019

The typescript typings (.d.ts) needs an update as well. It’s a very newly added addition so there’s no checklist or similar which ensures this yet.

Gotta remember this myself! :)

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 179e1bc and detected 0 issues on this pull request.

View more on Code Climate.

@mrchief mrchief changed the title feat: Accept DropdownAlways as a props feat: Ability to keep the dropdown open always Apr 23, 2019
Copy link
Collaborator

@mrchief mrchief left a comment

Choose a reason for hiding this comment

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

Thanks for sending this!

@mrchief mrchief changed the title feat: Ability to keep the dropdown open always feat: Ability to keep the dropdown open always (#241) ✨ Apr 23, 2019
@mrchief mrchief merged commit 4ce383a into dowjones:develop Apr 23, 2019
mrchief pushed a commit that referenced this pull request Apr 23, 2019
@mrchief
Copy link
Collaborator

mrchief commented May 4, 2019

@allcontributors[bot] Let's add @moonjy1993 for code, bug

@allcontributors
Copy link
Contributor

@mrchief

I've put up a pull request to add @moonjy1993! 🎉

@mrchief
Copy link
Collaborator

mrchief commented Jun 10, 2019

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants