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: clear search input on resetting state #410

Merged
merged 2 commits into from
Aug 9, 2020

Conversation

berdyshev
Copy link
Contributor

When using both clearSearchOnChange and inlineSearchInput options, the search input is not cleared inside the opened dropdown upon selecting one of the search results.

We need to check whether the input ref is accessible but not the case when inlineSearchInput is not set.

Fixes #409

@coveralls
Copy link

coveralls commented Aug 6, 2020

Pull Request Test Coverage Report for Build 1482

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 94.005%

Totals Coverage Status
Change from base Build 1478: 0.0%
Covered Lines: 601
Relevant Lines: 622

💛 - Coveralls

@berdyshev berdyshev changed the title Clear search input on resetting state fix: clear search input on resetting state Aug 6, 2020
@berdyshev
Copy link
Contributor Author

@mrchief please check

@mrchief
Copy link
Collaborator

mrchief commented Aug 6, 2020

Will check and let you know.

@mrchief
Copy link
Collaborator

mrchief commented Aug 6, 2020

@all-contributors Please add @berdyshev for code,bug

@allcontributors
Copy link
Contributor

@mrchief

I couldn't determine any contributions to add, did you specify any contributions?
Please make sure to use valid contribution names.

@mrchief
Copy link
Collaborator

mrchief commented Aug 6, 2020

@all-contributors Please add @berdyshev for code and bug

@allcontributors
Copy link
Contributor

@mrchief

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

@codeclimate
Copy link

codeclimate bot commented Aug 9, 2020

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

View more on Code Climate.

@mrchief mrchief merged commit 945fdbb into dowjones:develop Aug 9, 2020
@github-actions
Copy link

github-actions bot commented Aug 9, 2020

🎉 This PR is included in version 2.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

m4theushw pushed a commit to m4theushw/react-dropdown-tree-select that referenced this pull request Sep 20, 2020
Co-authored-by: Hrusikesh Panda <mrchief@users.noreply.github.com>
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.

Search input is not cleared on selection
3 participants