eiriklv / react-masonry-component

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

Can't click inside an item #104

Closed kaloudiyi closed 6 years ago

kaloudiyi commented 6 years ago

I would like manage the click inside an item and update some of their properties. The events doesn't respond when there are located inside items. It's difficult to do that with the only one onClick event of the Masonry component.

How can I do this ?

afram commented 6 years ago

Hi @kaloudiyi

You should be able to attach event listeners to each item. Do you have a code sample we can refer to?

kaloudiyi commented 6 years ago

I wrote a simple example and "good surprise for me" it worked. So the problem is in my code. Thanks :-)