tleunen / react-mdl

React Components for Material Design Lite
https://tleunen.github.io/react-mdl/
MIT License
1.76k stars 255 forks source link

[Chip] Having more than one child doubles the first one(?) #384

Closed igorsantos07 closed 8 years ago

igorsantos07 commented 8 years ago

Codepen

render() {
  let computedValue = 10
  return <Chip>Cool chip {computedValue}</Chip>
}

renders something like (Cool chip Cool chip 10)

There's also a warning on the console about flattenChildren() finding two children with the same key .0. I could workaround this by using <Chip><span>Cool chip {computedValue}</span></Chip> but that sounds hackish / verbose :)

tleunen commented 8 years ago

Thanks for reporting this @igorsantos07