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

Spread props + bind:group + value #4803

Closed
lagden opened this issue May 8, 2020 · 2 comments · Fixed by #4809
Closed

Spread props + bind:group + value #4803

lagden opened this issue May 8, 2020 · 2 comments · Fixed by #4809
Labels

Comments

@lagden
Copy link

lagden commented May 8, 2020

It's very weird behavior!

When I use spread props, the attribute value is not rendering.

I did a REPL:
https://svelte.dev/repl/73b2780bd1744b189564ffca010c2aec?version=3.22.2

Example (fragment in REPL):

<input
  type="radio"
  id="{name}_{idx}"
  {value}
  {...props}
  bind:group={$store[name]}
/>

image


Workaround to work:

<input
  type="radio"
  id="{name}_{idx}"
  {value}
  {...{...props, value}}
  bind:group={$store[name]}
/>
@lagden
Copy link
Author

lagden commented May 11, 2020

👍

@Conduitry
Copy link
Member

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