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(Dropdown): abort handleBlur on click inside #514

Merged
merged 3 commits into from
Sep 20, 2016

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Sep 20, 2016

Fixes #513. This PR:

  • adds docs for an uncontrolled selection Dropdown
  • aborts handleBlur if blur was triggered due to a click inside the Dropdown
  • adds test for handleBlur

The primary fix being, clicks inside the Dropdown shouldn't be considered "blurring" the Dropdown. Previously, clicking an item blurred the Dropdown which auto selected the highlighted item.

@codecov-io
Copy link

codecov-io commented Sep 20, 2016

Current coverage is 98.73% (diff: 100%)

Merging #514 into master will increase coverage by <.01%

@@             master       #514   diff @@
==========================================
  Files           106        106          
  Lines          1743       1744     +1   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           1721       1722     +1   
  Misses           22         22          
  Partials          0          0          

Powered by Codecov. Last update 688b6db...e5567c7

@levithomason levithomason merged commit 6c4034b into master Sep 20, 2016
@levithomason levithomason deleted the fix/dropdown-uncontrolled-item-click branch September 20, 2016 01:15
@levithomason
Copy link
Member Author

Released in [email protected]

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.

Selecting an item from a Dropdown menu in search mode (non multi) does not work
2 participants