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): skip select item on blur when closed #508

Merged
merged 2 commits into from
Sep 18, 2016

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Sep 18, 2016

Fixes #504

The Dropdown method selectHighlightedItem() is called on blur. This method should only continue if the Dropdown is open.

This PR adds the open logic to prevent duplicate calls to onChange. Without this, onChange is called on item click and again when the Dropdown is blurred.

@codecov-io
Copy link

codecov-io commented Sep 18, 2016

Current coverage is 98.68% (diff: 100%)

Merging #508 into master will not change coverage

@@             master       #508   diff @@
==========================================
  Files           102        102          
  Lines          1520       1520          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           1500       1500          
  Misses           20         20          
  Partials          0          0          

Powered by Codecov. Last update 2b84844...3d11e85

@levithomason levithomason merged commit d95408c into master Sep 18, 2016
@levithomason levithomason deleted the fix/dropdown-duplicate-onchange branch September 18, 2016 20:38
@levithomason
Copy link
Member Author

Released in stardust@0.44.4

@mclarentgp
Copy link
Contributor

Thanks, the fix works great!

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.

3 participants