-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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(Dropdown): stop onOpen from firing twice on icon click #2744
fix(Dropdown): stop onOpen from firing twice on icon click #2744
Conversation
💖 Thanks for opening this pull request! 💖 Here is a list of things that will help get it across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
Codecov Report
@@ Coverage Diff @@
## master #2744 +/- ##
==========================================
+ Coverage 99.67% 99.74% +0.07%
==========================================
Files 160 160
Lines 2761 2759 -2
==========================================
Hits 2752 2752
+ Misses 9 7 -2
Continue to review full report at Codecov.
|
Great fix, thanks! Let's also get a test that asserts the callback is There are many examples of using |
The new test in Dropdown-test.js starts at line 1249. The new test fails as expected without the changes in the first commit. |
Thanks! |
Released in |
Connects #2600
onOpen is firing twice when Dropdown icon is clicked with a
search
propThe change is at line 426. The other changes are from Prettier