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
Support binding value #38
Comments
@etclub |
Any prevision @agustinl ? |
It would be great if it supported Until then, you can work around it with something like: function handleTags(event) {
$form.tags = event.detail.tags;
}
...
<Tags
on:tags={handleTags}
...
/> I'm using above successfully with |
Thank you @mstibbard |
Hi @etclub @gabrieldejesus @mstibbard If I add You can use the following function: <script>
let tag = "";
function handleTags(event) {
tag = event.detail.tags;
}
</script>
<Tags
on:tags={handleTags}
/> Let me know if I can provide more help. ☺ |
@agustinl I think something like this |
with new Sevelt Form Actions (https://kit.svelte.dev/docs/form-actions), we may not be able to use libs like svelte-forms-lib |
a workaround may be to dispatch Custom Event with target, sothat handleTags method can set the value to target's form input element https://svelte.dev/repl/c93cbf99a8ca4f44912e662a8e3cbef7?version=3.37.0 |
Hello everyone! I created a PR with support for binding tags. Will be very helpful your help to test if all works fine. From my side I saw all fine, but 4 eyes see better than 2 thanks for the patience 💪 |
I tested. it worked as expected. |
@agustinl can you add |
Hi @xmlking I will add types support in other branch. Thanks for your help! |
I hope
bind:value
is supported.The text was updated successfully, but these errors were encountered: