Responsive and bootstrap v3 dropdown-toggle

Responsive and bootstrap v3 dropdown-toggle

j0shuaj0shua Posts: 2Questions: 1Answers: 0

One of the columns inside my datatable is a dropdown menu using bootstrap (v3) component (data-toggle="dropdown" class="btn btn-secondary dropdown-toggle").

But when i resize the page and then click on the (+) the menu is already open. The problem is in responsive.bootstrap.min.css, selector : table.dataTable > tbody > tr.child ul which modify the display: none to display: inline-block; of the dropdown-menu. If i change the CSS selector (by using a self-hosted version) from table.dataTable > tbody > tr.child ul to table.dataTable > tbody > tr.child ul:not(.dropdown-menu) the problem is resolved.

Does the fact that the menu is already open is the desired behavior. ?

Answers

  • allanallan Posts: 63,815Questions: 1Answers: 10,517 Site admin

    Can you link to a page showing the issue please?

    It does sound like a change is needed in the default CSS.

    Thanks,
    Allan

  • j0shuaj0shua Posts: 2Questions: 1Answers: 0
  • allanallan Posts: 63,815Questions: 1Answers: 10,517 Site admin

    Awesome - thanks! I'll look into it and get back to you.

    Allan

  • allanallan Posts: 63,815Questions: 1Answers: 10,517 Site admin

    Hi,

    Sorry for the delay! Fix committed and the nightly will rebuild with the change shortly.

    Basically I've just added a class to make my selector more specific.

    Regards,
    Allan

This discussion has been closed.