eiriklv / react-masonry-component

A React.js component for using @desandro's Masonry
MIT License
1.44k stars 145 forks source link

Unknown proptypes passed down to elementType node. #49

Closed Exomnius closed 7 years ago

Exomnius commented 8 years ago

Since react v15.2.0, you will get a warning when you pass a prop, that is not in the proptypes, to a DOM node.

Example:

<Masonry
  ref="masonry"
  className={'grid'}
  elementType={'ul'}
  options={masonryOptions}
  disableImagesLoaded={false}>
 {/* Other code */}
</Masonry>

Gives the following warnings: Warning: Unknown props elementType, options, disableImagesLoaded on ul tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop

afram commented 8 years ago

Ta, will get this sorted out asap.

afram commented 8 years ago

@Exomnius What version of react-masonry-component are you using?

This should have been sorted from version 4.2.0

Exomnius commented 8 years ago

Thanks for the reply! It seems to be resolved now. A clean checkout and rebuild fixed it so it was probably an older version.

afram commented 7 years ago

No worries @Exomnius