Skip to content

inline-grid prevent component from updating #11

Description

@Nico-L

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions