Skip to content

Prevent CodePens from stealing focus and scrolling the page #1047

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

Merged
merged 1 commit into from
May 11, 2021

Conversation

skirtles-code
Copy link
Contributor

Fixes #996.

Some of the CodePens were causing the page to jump when they loaded. It needed a specific set of configuration options to trigger the problem, so only a handful needed updating.

Where possible I have hidden the HTML tab by default. I used this approach whenever the HTML was already shown in a code block.

In cases where that wasn't possible I've removed the :preview="false". This requires the user to click before the CodePen does anything.

@NataliaTepluhina NataliaTepluhina merged commit 6b0a492 into vuejs:master May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Page content on v3.vuejs.org/guide jumps 3 times while loading
2 participants