Skip to content
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

Can't bind value of form inputs #206

Open
5 of 6 tasks
khromov opened this issue Apr 24, 2024 · 1 comment
Open
5 of 6 tasks

Can't bind value of form inputs #206

khromov opened this issue Apr 24, 2024 · 1 comment
Labels
Svelte Issue with Tailwind Mobile Svelte

Comments

@khromov
Copy link

khromov commented Apr 24, 2024

Check that this is really a bug

  • I confirm

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

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Konsta UI issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@khromov khromov added the Svelte Issue with Tailwind Mobile Svelte label Apr 24, 2024
@ilyakamens
Copy link
Contributor

I also just ran into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Svelte Issue with Tailwind Mobile Svelte
Projects
None yet
Development

No branches or pull requests

2 participants