-
Notifications
You must be signed in to change notification settings - Fork 853
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
Remove focus after cancelling modal #607
Conversation
this.props.onTeamRemove(); | ||
} | ||
handleTeamEditing() { | ||
document.activeElement.blur(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the team list, TeamList.jsx
controls modals. So I think it should call document.activeElement.blur().
@@ -9,9 +9,11 @@ class TeamListItem extends React.Component { | |||
} | |||
|
|||
handleTeamRemove() { | |||
document.activeElement.blur(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the team list, TeamList.jsx
controls modals. So I think it should call document.activeElement.blur().
Thanks @wvds, the behavior looks good! For better code, would you review my comments? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasonblais @yuya-oc I've made the changes to the pull request :-) |
Thanks @wvds!! :) |
Closes #446
Before submitting, please confirm you've
npm run lint:js
for proper code formattingPlease provide the following information:
Summary
After closing the modal the focus of the clicked link will be removed
Issue link
#446