Skip to content

[fix] focus management between editor and iframe #168

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 4 commits into from
Dec 22, 2022

Conversation

tomoam
Copy link
Contributor

@tomoam tomoam commented Dec 22, 2022

fix #167

@vercel
Copy link

vercel bot commented Dec 22, 2022

@tomoam is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Dec 22, 2022

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

Name Status Preview Updated
learn-svelte-dev ✅ Ready (Inspect) Visit Preview Dec 22, 2022 at 5:06PM (UTC)

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

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

Thank you! I added a little more logic to keep client side navigations that the user did inside the iframe from refocussing the editor.

@dummdidumm dummdidumm merged commit 9c9656b into sveltejs:main Dec 22, 2022
@tomoam
Copy link
Contributor Author

tomoam commented Dec 22, 2022

Thank you!

Rich-Harris added a commit that referenced this pull request Jan 23, 2023
@Rich-Harris
Copy link
Member

For posterity: unfortunately this introduced a bug, namely that clicking links inside the iframe causes the editor to be incorrectly focused. Reverted in #190.

dummdidumm pushed a commit that referenced this pull request Jan 24, 2023
@tomoam tomoam deleted the fix-focus branch February 21, 2023 06:22
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.

Cannot focus on input element inside iframe when the editor has focus.
3 participants