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: Clicking outside the component does not close it when defaultOpen is true #2332

Closed
sean-mckenna opened this issue Nov 20, 2017 · 0 comments · Fixed by #2334
Closed
Labels

Comments

@sean-mckenna
Copy link
Contributor

Steps

Load the Dropdown with defaultOpen set to true
Click anywhere in the window, outside of the Dropdown component

Expected Result

The Dropdown should close due to the onBlur event

Actual Result

The Dropdown does not close

Version

0.76.0

Testcase

https://codesandbox.io/s/0p0p0mjw2n

@sean-mckenna sean-mckenna changed the title Dropdown: Clicking outside does not close the dropdown when defaultOpen is true Dropdown: Clicking outside the component does not close it when defaultOpen is true Nov 20, 2017
sean-mckenna added a commit to sean-mckenna/Semantic-UI-React that referenced this issue Nov 20, 2017
This attaches the event handlers to deal with closing the Dropdown such as onBlue and pressing the esc key.

fixes Semantic-Org#2332
levithomason pushed a commit that referenced this issue Nov 25, 2017
This attaches the event handlers to deal with closing the Dropdown such as onBlue and pressing the esc key.

fixes #2332
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 a pull request may close this issue.

2 participants