How to bind a value to svelte input?

I tryed bind:value={value},it works,the input gets the value,but when i type in input the value isn’t updated

Это же Svelte, посмотри код, который получается в результате.

Hello try with this onInput={ e => value = e.target.value }

2 Likes

You need to create a minimal test case in codepen.

Check the svelte tutorials (section 6 - “bindings”). For instance:

1 Like

I had the same problem. The default svelte-way do not work, sadly. @ wilbertbocanegra is right, thanks!

1 Like