-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hi,
I just stumbled twice on the same problem I don't understand. I am working on an app with meteor 1.4.1, react, material-ui and inline-grid. Inline-grid seems to prevent inside component to update.
The following is the code for a list of image user can pick up to illustrate an event. Below each image I align 3 icons with inline-grid. The select/selected icon (the fist one) shows weither the user pick this particular image.
The icon is not updated inside the inline-grid row. As soon as I put it outside, everything works fine though. I spent quite some time figuring out where the problem is.
The code
<div>
<GridTile key={image._id}>
<img
src={Images.link(image, 'taille120')}
width="120"
onClick={() => {self.choisirImage(image._id)}}
/>
<Row is="around nospace">
<Cell is="3">
<FontIcon className={self.choixIcon(image._id)}/>
</Cell>
<Cell is="3">
<FontIcon className="fa fa-crop"/>
</Cell>
<Cell is="3">
<FontIcon className="fa fa-remove"/>
</Cell>
</Row>
</GridTile></div>
I don't understand this behavior. How could I do for updating the FontIcon inside the GridTile ? Do I miss something?
Metadata
Metadata
Assignees
Labels
No labels