Skip to content

<svelte:window bind:activeElement>Β #2671

@Rich-Harris

Description

@Rich-Harris

Apparently we can track this using captured focus events:

https://svelte.dev/repl?version=3.1.0&gist=83b2c5fc64d3eb5fb5fa0691e47bbce8

Whether it belongs on <svelte:window> isn't totally clear, since it's document.activeElement rather than window.activeElement. Maybe we'd need a new <svelte:document> instead.

cc @mrkishi

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions