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): fix arrow keys after no results #1279

Merged
merged 1 commit into from
Feb 3, 2017

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Feb 3, 2017

Fixes #1275

The Dropdown attempts to set the selectedIndex (highlighted item) to undefined after encountering the "No results." message.

This PR resets the selectedIndex to 0 after every search change. This is inline with SUI core and was our original intention for this component.

@codecov-io
Copy link

codecov-io commented Feb 3, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@0372af2). Click here to learn what that means.

@@            Coverage Diff            @@
##             master    #1279   +/-   ##
=========================================
  Coverage          ?   95.91%           
=========================================
  Files             ?      883           
  Lines             ?     4926           
  Branches          ?        0           
=========================================
  Hits              ?     4725           
  Misses            ?      201           
  Partials          ?        0
Impacted Files Coverage Δ
src/modules/Dropdown/Dropdown.js 100% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0372af2...9ab1199. Read the comment docs.

@levithomason levithomason merged commit ced73f2 into master Feb 3, 2017
@levithomason levithomason deleted the fix/dropdown-selection-after-search branch February 3, 2017 18:33
@levithomason
Copy link
Member Author

Released in [email protected].

harel pushed a commit to harel/Semantic-UI-React that referenced this pull request Feb 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants