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

Window bindings to stores don't work #3832

Closed
Rich-Harris opened this issue Oct 31, 2019 · 0 comments · Fixed by #3835
Closed

Window bindings to stores don't work #3832

Rich-Harris opened this issue Oct 31, 2019 · 0 comments · Fixed by #3835
Labels

Comments

@Rich-Harris
Copy link
Member

Via https://stackoverflow.com/questions/58642539/save-window-binding-in-svelte-store:

Describe the bug
<svelte:window bind:scrollY={$y}/> doesn't update the y` store.

To Reproduce
https://svelte.dev/repl/f4589ca97ea248a7926026d8519b8980?version=3.12.1

Expected behavior
The derived store should update. It doesn't, because only the local $y variable is updating.

Severity
Medium

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.

1 participant