web123456

material-ui component [Table] OnCellClick cannot be used

Version:
"react": "^15.6.2",
"material-ui": "^0.15.4",

The onCellClick event does not work on TableRow, and it needs to be added to the Table before it will take effect.


                <Table onCellClick={(row,column,event) => (row,column,event)}>

                    <TableHeader

                        displaySelectAll={false}

                        adjustForCheckbox={false}

                        enableSelectAll={false}

                        style={}

                    >

                        <TableRow>

                            <TableHeaderColumn style={}>{

                                formatMessage({id: 'serial number'})

                            }</TableHeaderColumn>

                            <TableHeaderColumn style={}>{

                                formatMessage({id: 'created time'})

                            }</TableHeaderColumn>

                            <TableHeaderColumn style={}>{

                                formatMessage({id: 'chip platform'})

                            }</TableHeaderColumn>

                            <TableHeaderColumn style={}>{

                                formatMessage({id: 'product portfolio'})

                            }</TableHeaderColumn>

                            <TableHeaderColumn style={}>{

                                formatMessage({id: 'status'})

                            }</TableHeaderColumn>

                            <TableHeaderColumn style={}>{

                                formatMessage({id: 'publisher'})

                            }</TableHeaderColumn>

                            <TableHeaderColumn style={}>{

                                formatMessage({id: 'release time'})

                            }</TableHeaderColumn>

                            <TableHeaderColumn style={}>{

                                formatMessage({id: 'remarks'})

                            }</TableHeaderColumn>

                            <TableHeaderColumn style={}>{

                                formatMessage({id: 'operate'})

                            }</TableHeaderColumn>

                        </TableRow>

                    </TableHeader>

                    <TableBody displayRowCheckbox={false}>

                        {certificateElements}

                    </TableBody>

                </Table>

//Receive events

    isSelect = (row,column,event) => {

        console.log(row,column,event)

        ({

            display:true,

            num:row

        })

    }


That is onCellClick on Table.