Modals only working with table class="collapsed"

Modals only working with table class="collapsed"

philipphilip Posts: 11Questions: 5Answers: 0
edited November 2017 in General

I can only get bootstrap modals to work when the collapsed table class is added, yet this class only exists if the table is collapsed. Adding it by default when the table is generated does not work as the class disappears.

How can we get modals to always work? Is it true that the collapsed class is required?

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Can you link to a page showing the issue please? How are you triggering your modals?

    Allan

  • JayBeraJayBera Posts: 1Questions: 0Answers: 0

    I am facing same issue I have to add collapsed class writing separate jQuery because when the table is generated does not work as the collapsed class disappears.

    Is there any option to do this?

  • kthorngrenkthorngren Posts: 21,336Questions: 26Answers: 4,951
    edited June 2019

    The developer asked for more information and a test case replicating the issue. Please provide a test case so the issue can be debugged.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

This discussion has been closed.