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

Dropdown: Does not display value on enter when using search selection #2161

Closed
davidhenley opened this issue Oct 3, 2017 · 1 comment
Closed
Labels

Comments

@davidhenley
Copy link

davidhenley commented Oct 3, 2017

✖ CSS ISSUES → Post on https://github.com/Semantic-Org/Semantic-UI

✖ USAGE QUESTIONS → Use these dedicated resources:
Docs - http://react.semantic-ui.com
Chat - https://gitter.im/Semantic-Org/Semantic-UI-React
SO - http://stackoverflow.com/search?q=semantic-ui-react

✔ BUGS → This form is required:

Steps

<Form.Dropdown
      label={label}
      search
      selection
      selectOnBlur={false}
      selectOnNavigation={false}
      options={options}
      value={input.value}
      onChange={(param,data) => input.onChange(data.value)}
    />

Search a couple of letters in dropdown search selection
Arrow down to selection
Hit enter

Expected Result

Call onChange and displays new value in input box

Actual Result

Calls onChange but displays the searched letters instead of new value
OnBlur sets display of input box to value

Version

0.74.2

Testcase

@layershifter
Copy link
Member

Please respect our time and fill issue template fully, i.e. make a working codepen.

levithomason pushed a commit that referenced this issue Oct 16, 2017
* fix(Dropdown): update text when item selected with keyboard. (#2161)

* fix(Dropdown): always clear search query on select item with enter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants