Open Denis-String opened 6 years ago
same issue here.
I tink you dont have defined: ref='table' `
How can i access this ref in functional component?
@AhsanNissar I think you can do something like this:
import React, {useRef} from 'react'
const tableRef = useRef()
...
<BootstrapTable ref={tableRef} ...>
package.json
"react-bootstrap-table": "^4.3.1",
banco.js
When the user clicks the line, it is selected with a green color, and when it is clicked again, the line gets clean, but I wanted to uncheck this line automatically.
How can I do this ?
I tried using the:
this.refs.table.reset();
but displays the error in the console:
TypeError: Cannot read property 'reset' of undefined