Skip to content

Error using ListItem #1112

@ghost

Description

While using the new version of ListItem this bit of code resulted in the following error uncaught Error: Invariant Violation: ReactMount: Two valid but unequal nodes with the same data-reactid
Note that this ListItem itself was nested in other lists and cards. Funny thing is the same code worked with the earlier version of material-ui. Just wondering what changed and what I can do to fix this?

<div>
    <ListItem
        secondaryText = {<p> secondaryText </p>}
        disableTouchTap = {true}
        rightIconButton={options}
        style = {
            {
                fontSize : 16,
                lineHeight : "16px",
                backgroundColor : Colors.green50
            }
        }>
            <p>ABCD</p>
                <p>XYZ</p>
    </ListItem>
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugIt doesn't behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions