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

chore(popover): update docs to clarify autoFocus usage #4457

Merged
merged 3 commits into from
Aug 16, 2021

Conversation

lhbrennan
Copy link
Collaborator

@lhbrennan lhbrennan commented Aug 13, 2021

Fixes #3667

Description

The issue described by the reporter is due to user error: adding the autofocus attribute directly to Popover's contents causes the screen to jump to the top of the page when the Popover loads. This PR updates the docs to specify that autofocus should always be managed via Popover's autoFocus prop.

Scope

Patch: Bug Fix

Autofocus should always be managed via Popover's autoFocus prop, rather
than by adding the autofocus attribute directly to Popover's contents.
@vercel
Copy link

vercel bot commented Aug 13, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/uber-ui-platform/baseweb/CG947w846HLsaaSihYLo8Zyq18Jf
✅ Preview: https://baseweb-git-update-docs-for-popover-uber-ui-platform.vercel.app

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 13, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e73c7f9:

Sandbox Source
Basic usage Configuration

@lhbrennan lhbrennan marked this pull request as ready for review August 13, 2021 00:43
@lhbrennan lhbrennan merged commit b3ea875 into master Aug 16, 2021
@lhbrennan lhbrennan deleted the update-docs-for-popover branch August 16, 2021 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants