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: Fix error in #7503 PR and tidy up docs #7571

Merged
merged 1 commit into from Jun 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/popover/index.js
Expand Up @@ -291,9 +291,9 @@ class Popover extends Component {
);
/* eslint-enable jsx-a11y/no-static-element-interactions */

// Apply focus return behavior except when default focus on open
// behavior is disabled.
if ( ! focusOnMount ) {
// Apply focus to element as long as focusOnMount is truthy; false is
// the only "disabled" value.
if ( focusOnMount ) {
content = <FocusManaged>{ content }</FocusManaged>;
}

Expand Down