Skip to content

Add bind:focus to typings #15121

Closed
Closed
@ecstrema

Description

@ecstrema

Describe the bug

Although bind:focus works, my IDE isn't happy:

Image

So it looks like a typings issue. should it maybe be added to the declaration files?

Reproduction

paste this into your IDE and wait for intellisense:

<script>
	let focused = $state([]);
</script>

<input bind:focused={focused[0]} /> <br>
<textarea bind:focused={focused[1]}></textarea> <br>
<select bind:focused={focused[2]}></select> <br>
<div bind:focused={focused[3]} tabindex="0">DIV</div> <br>

{focused}

Logs

System Info

Windows 11

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions