mirror of https://github.com/sveltejs/svelte
fix: Add `bind:focused` to `HTMLAttributes` (#15122)
* Revert "fix: ensure untrack correctly retains the active reaction (#15065)" This reverts commitpull/15129/head2ad519542d
. * feat: Add `bind:focused` to `HTMLAttributes` * Revert "Revert "fix: ensure untrack correctly retains the active reaction (#15065)"" This reverts commitf4e98bf89f
. * changeset * tests
parent
0e0f01ee1c
commit
3f8ce21f47
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: Add `bind:focused` property to `HTMLAttributes` type
|
@ -0,0 +1,8 @@
|
||||
<script lang="ts">
|
||||
let focused = $state(false);
|
||||
</script>
|
||||
|
||||
<input bind:focused={focused} type="text" />
|
||||
<textarea bind:focused={focused}></textarea>
|
||||
<select bind:focused={focused}></select>
|
||||
<div bind:focused={focused}></div>
|
Loading…
Reference in new issue