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

bind to selected don't update selected #52

Open
mblandr opened this issue Feb 10, 2022 · 2 comments
Open

bind to selected don't update selected #52

mblandr opened this issue Feb 10, 2022 · 2 comments

Comments

@mblandr
Copy link

mblandr commented Feb 10, 2022

When I bind to selected property, there is no two-way binding, only component->variable. When I change variable, component doesn't update

@auberryberry
Copy link

Folks, I'm stepping on this one a year later, is there any appetite for a PR to get two way binding in? I guess this is most useful in form scenarios.

@anastasiia-baboshina
Copy link

Key blocks worked for me.

{#key selected}
  <DatePicker
    {range}
    {placeholder}
    {format}
    {selected}
    {continueText}
    on:range-selected={(e) => handleRange(e)}
  />
{/key}

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

No branches or pull requests

3 participants