We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
E.g. you will need something like
<input bind:this={() => {}, input => { ... }} />
Maybe bind:this={null, input => { ... }} or some other flavor should be possible?
bind:this={null, input => { ... }}
<script> let value = $state(); $inspect(value); </script> <input value="test" bind:this={null, e => value = e.value} />
Playground
REPL
annoyance
The text was updated successfully, but these errors were encountered:
I think it's doable...but it's really needed if the bind is unidirectional? Who use this instead of just bind:this?
Sorry, something went wrong.
Possibly useful in snippets.
{@render thing(element => ...)}
{#snippet thing(cb)} <input bind:this={null, cb}> {/snippet}
Otherwise you need an object with a property definition.
In that case why not <input oninput={cb} /> instead?
<input oninput={cb} />
Honestly not sure if we need to enhance this for such an edge case (and it's only a few characters)
It's bind:this not bind:value...but yeah feels like a super edge case...however it could be just a quick fix so we might just as well doing it.
bind:this
bind:value
No branches or pull requests
Describe the bug
E.g. you will need something like
Maybe
bind:this={null, input => { ... }}
or some other flavor should be possible?Reproduction
Playground
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: