You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we have multiple DataTables on the same page; each dataTable can have it's own dropdown-menu open at the same time.
We woud like to avoid this and make sure there is only ever one dropdown-menu open across all dataTables.
A workaround I have found for this is to "misuse" the headerRenderer function to count the number of div.dropdown-menu elements present on the page. If there is >1, then I compare the dataTable-Id with the Id of the dropdown (since it starts with that) and then remove the not-matching div.dropdown-menu.
When we have multiple DataTables on the same page; each dataTable can have it's own dropdown-menu open at the same time.
We woud like to avoid this and make sure there is only ever one dropdown-menu open across all dataTables.
A workaround I have found for this is to "misuse" the
headerRenderer
function to count the number ofdiv.dropdown-menu
elements present on the page. If there is >1, then I compare the dataTable-Id with the Id of the dropdown (since it starts with that) and then remove the not-matchingdiv.dropdown-menu
.Maybe this behaviour could be added as a configuration option?
The text was updated successfully, but these errors were encountered: