Expand a row by click of table on a certain condition Ant Design table react js
问题 I need a small help. I need to write the code such that the table row should expand only when it's toggle is on when the toggle is off it should not expand. I have used the property expandRowByClick to expand a row when it is clicked. But here the problem is when the toggle is off it should not clickable, but right now an empty row will expand. How can I avoid it? Anyone help me out. Thank you. SandBox link: https://codesandbox.io/s/purple-sun-1rtz1?file=/index.js 回答1: just paste this code .