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

Update stackblitz iframes to use ctl=1 to prevent focus stealing #5784

Merged
merged 1 commit into from
Mar 31, 2024

Conversation

etrepum
Copy link
Collaborator

@etrepum etrepum commented Mar 29, 2024

The stackblitz iframe steals focus after it loads when not using ctl=1. It's a jarring experience when reading the documentation or browsing the homepage because this focus-stealing also scrolls the iframe into view and they're below the fold.

Also uses the main branch here rather than feature branches in other repos that might be deleted later, I suspect this was just missed after merging the vanilla-js-plugin example by @StyleT (#5717)

To notice the difference, try comparing the UX between some of the docs pages (wait a few seconds for stackblitz to load on the before examples):

Copy link

vercel bot commented Mar 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 29, 2024 9:34pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 29, 2024 9:34pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 29, 2024
Copy link
Collaborator

@ivailop7 ivailop7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ivailop7 ivailop7 merged commit cdbcf75 into facebook:main Mar 31, 2024
5 checks passed
@etrepum etrepum deleted the stackblitz-ctl branch May 11, 2024 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants