Skip to content

Dropdown: Multiple repetitive line entries erroneously added to the dropdown list #2489

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

Closed
ghost opened this issue Feb 3, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 3, 2018

Steps

  • Add a Semantic-UI-React dropdown component which includes both the 'search' and the 'allowAdditions' option. Implement the onAddItem event callback.
  • Click into the search box and type some unique text not already available in the dropdown, but don't hit enter.
  • Using arrow keys, traverse the active cell up and down past the 'Add' line entry a few times.

Expected Result

No additional item is added to the dropdown list since neither the enter key was not pressed nor the 'Add' line entry was clicked.

Actual Result

Multiple repetitive additional items were erroneously added to the dropdown list, one for each time the user navigated past the 'Add' line entry using the arrow keys.

Version

[email protected]

@levithomason
Copy link
Member

Please provide a working codesandbox example using the link in the issue template. I apologize, we simply don't have the time to recreate all issues ourselves.

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

No branches or pull requests

1 participant