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

Two-way data binding issue with dynamic components #1040

Closed
ekhaled opened this issue Dec 22, 2017 · 1 comment · Fixed by #1047
Closed

Two-way data binding issue with dynamic components #1040

ekhaled opened this issue Dec 22, 2017 · 1 comment · Fixed by #1047
Labels

Comments

@ekhaled
Copy link
Contributor

ekhaled commented Dec 22, 2017

REPL: https://svelte.technology/repl?version=1.49.1&gist=7e3783cd296545111c21728d131c1c06

Seems like when you do a two-way binding, it reverts back to the original data when a component is switched.

However, if it is just a one-way data binding, it works as expected, without reverting back to original data on switching.

@Rich-Harris
Copy link
Member

thank you, fixed in 1.49.3

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

Successfully merging a pull request may close this issue.

2 participants