React Bootstrap OverlayTrigger and Tooltip issue

前端 未结 2 1053
别那么骄傲
别那么骄傲 2021-01-13 15:14

I am trying to use react-bootstrap OverlayTrigger and Tooltip inside of a formatter for react-bootstrap-table and keep getting the following error:

OverlayTrigger\'s

2条回答
  •  一生所求
    2021-01-13 15:46

    I had the same problem. I can't explain why but I simply solved by adding a tag inside OverlayTrigger tag. My formatter function is inside a React Class.

    My solution:

    tooltipFormatter(cell, row){
        return ({cell}}>{cell});
    };
    

    Here, span tag solved the problem.

    If I adapt your code, here's the solution :

    submitterFormatter(submitter, row){
        return ({submitter}}>{submitter});
    };      
    

    Then, when I call in dataFormat parameter of TableHeaderColumn:

    TableHeader
    

提交回复
热议问题