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

fix indirect bindings on elements with spreads #4398

Merged
merged 3 commits into from
Feb 12, 2020

Conversation

Conduitry
Copy link
Member

Fixes #3680. On indirectly bound values, what's important is the custom __value property on the element. This makes the combined object of props/attrs used in spreads include __value instead of value in cases where there is an indirect binding - and also updates the set_attributes helper to include a special case for __value, which we would otherwise try to set as an attribute since it's not a valid property on the prototype.

This does not address #4397, which I split off as a separate issue, and looks to be unrelated to the spread.

It also does not address #4392, which is less of a related issue than I had hoped it would be.

@Conduitry Conduitry merged commit b6d80f4 into sveltejs:master Feb 12, 2020
@Conduitry Conduitry deleted the gh-3680 branch February 12, 2020 02:01
jesseskinner pushed a commit to jesseskinner/svelte that referenced this pull request Feb 27, 2020
taylorzane pushed a commit to taylorzane/svelte that referenced this pull request Dec 17, 2020
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

Successfully merging this pull request may close these issues.

Radio/checkbox input with bind:group and spread props makes variable undefined
1 participant