Skip to content

Add bind:focus to typings #15121

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

Closed
ecstrema opened this issue Jan 27, 2025 · 1 comment · Fixed by #15122
Closed

Add bind:focus to typings #15121

ecstrema opened this issue Jan 27, 2025 · 1 comment · Fixed by #15122

Comments

@ecstrema
Copy link
Contributor

ecstrema commented Jan 27, 2025

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

@ecstrema ecstrema changed the title Add bind;focus to typings Add bind:focus to typings Jan 27, 2025
@ecstrema
Copy link
Contributor Author

From this issue and comments

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 a pull request may close this issue.

1 participant