Cannot press a button with tooltip in the table with one element

Cannot press a button with tooltip in the table with one element

lryszkalryszka Posts: 3Questions: 1Answers: 0
edited April 2022 in Free community support

Link to test case:
I have attached an example HTML file.
When a button is havering then the mouse course is changing from point to text and opposite way.
Debugger code (debug.datatables.net):
Error messages shown:
No error message.
Description of problem:
Cannot press a button with tooltip in the table with one element

Answers

  • lryszkalryszka Posts: 3Questions: 1Answers: 0

    I have added the code in the CodePen: https://codepen.io/lryszka/pen/popxgwL

  • lryszkalryszka Posts: 3Questions: 1Answers: 0

    I have found the solution:
    $('[data-toggle="tooltip"]').tooltip({
    boundary: 'window',
    container: 'body'
    });

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Ah nice, thanks for reporting back.

    Colin

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin

    Yes, that is the correct solution - thanks for posting it. When scrolling is enabled in a DataTable it has to use overflow: auto for the scrolling container, which means that any element inside it can be clipped if it attempts to show outside the visible boundary. Having the tooltip display positioned on the body fixes that.

    Allan

Sign In or Register to comment.