Description
Describe the problem
Cannot focus on input
element inside iframe
when the editor has focus.
- Reproduction
- visit https://learn.svelte.dev/tutorial/named-form-actions
- click the editor
- click the input element in iframe
focus_issue_480p.mov
This is probably related to #161.
I suppose the intent of #161 is to consider pointerdown
event as a human operation. However, events that occur inside iframe
cannot be handled from outside iframe
.
learn.svelte.dev/src/routes/tutorial/[slug]/Editor.svelte
Lines 243 to 249 in 8d0376c
learn.svelte.dev/src/routes/tutorial/[slug]/Editor.svelte
Lines 266 to 272 in 8d0376c
Describe the proposed solution
when body
element inside iframe
gets focus, set focus on the editor. (using postMessage
)
Metadata
Metadata
Assignees
Labels
No labels