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(Portal): focus is stolen when clicking away to close #1271

Closed
levithomason opened this issue Feb 1, 2017 · 1 comment · Fixed by #1273
Closed

fix(Portal): focus is stolen when clicking away to close #1271

levithomason opened this issue Feb 1, 2017 · 1 comment · Fixed by #1273
Assignees
Labels

Comments

@levithomason
Copy link
Member

levithomason commented Feb 1, 2017

Introduced in #1154, the Portal steals focus from other controls on close.

Steps

  1. Create a popup that opens on click
  2. Click the trigger to open the popup
  3. Click an input element outside of the popup to focus it

Expected Result

The popup should close and the input should receive focus.

Actual Result

The popup closes, but the popup's trigger steals focus from the input.

Version

0.64.5

Testcase

http://codepen.io/levithomason/pen/MJVoQY

@levithomason
Copy link
Member Author

Released in semantic-ui-react@0.64.7.

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.

1 participant