konstaui / konsta

Mobile UI components made with Tailwind CSS
https://konstaui.com
MIT License
3.3k stars 119 forks source link

Can't bind value of form inputs #206

Open khromov opened 3 weeks ago

khromov commented 3 weeks ago

Check that this is really a bug

Reproduction link

https://svelte.dev/repl/f6373a9c406f41e4a541d173f047951a?version=4.2.15

Bug description

The idiomatic way to do two way binding in Svelte 4 is bind:propname, for example for a <ListInput> I'd expect something like this to work and update the value property.

<script>
    let value;
</script>
<ListInput label="Enter task..." floatingLabel type="text" placeholder="Placeholder" bind:value={value}>

However on latest Konsta this only sets the default value and after editing the input the value does not update it.

Expected Behavior

Value can be updated in two way binding.

Actual Behavior

Not possible

Konsta UI version

3.1.2

Platform/Target and Browser Versions

macOS

Validations

Would you like to open a PR for this bug?