Bootstrap 4 (nav dropdown) vs Datatables.net Editor 1.7.2 issue (incompatibility)
Bootstrap 4 (nav dropdown) vs Datatables.net Editor 1.7.2 issue (incompatibility)
I just found one issue with Bootstratp 4 and Editor 1.7.2 dropdown problem. I just want to know that this is an known issue or is it just me who is know to the Bootstrap 4 and the Editor 1.7.2.
Basically, I can not get the "Dropdown link" expands if I am in the "Features" web page (it does have Datatables.net and Editor on the webpage). However the rest of other webpages are working find.
I debugged the issue and it leads me to the class 'download' event in Editor 1.7.2 which is conflcted to the class 'download' in the boostrap 4.
Thank you.
Datatables.net and Editor:
<%--datatables--%>
<link rel="stylesheet" href="../DataTables/DataTables-1.10.16/css/dataTablesPens.css" />
<script type="text/javascript" src="../DataTables/dataTables.min.js"></script>
<%-- select--%>
<link rel="stylesheet" href="../DataTables/Select-1.2.5/css/select.bootstrap4.min.css" />
<script type="text/javascript" src="../DataTables/Select-1.2.5/js/dataTables.select.min.js"></script>
<%--editor--%>
<link rel="stylesheet" href="../DataTables/Editor-1.7.2/css/editor.bootstrap4.min.css" />
<script src="../DataTables/Editor-1.7.2/js/editor.bootstrap4.min.js"></script>
<%--buttons--%>
<link rel="stylesheet" href="../DataTables/Buttons-1.5.1/css/buttons.bootstrap4.min.css" />
<script src="../DataTables/Buttons-1.5.1/js/buttons.bootstrap4.min.js"></script>
Bootstrap 4 navigator:
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link bg-primary-brand text-white" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link bg-primary-brand text-white" href="/Rates/DataTablesExamples.aspx">Features</a>
</li>
<li class="nav-item">
<a class="nav-link bg-primary-brand text-white" href="/Rates/carousel.aspx">Slider</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle bg-primary-brand text-white" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown link
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
</ul>
</div>
Answers
i have put a complete code so that you can see what happened to the dropdown box in the nav bar menu.
If you update to 1.7.3 I believe this should be resolved. There was a typo in the Bootstrap integration causing this.
Allan
I have upgrade to 1.7.3 and it did not resolve or fix the issue.
Here is the code with 1.7.3
There is a typo in the code 1.7.2 instead 1.7.3 in the code. However, it doesn't make any differences - they are both not working.
Thanks.
Could you show me a screenshot of the issue so I can try to replicate it locally, or even better, a link to a page showing the problem?
Thanks,
Allan
capture.png: show dropdown link (It can not be expanded when there is DTE).
capture2.png: show dropdown link get expanded (when there is no DTE)
Thanks. I totally misunderstood the issue before!
I'm afraid I don't know what is causing the issue you are seeing there and would need a link to a page that shows the issue. All of the styles used by Editor should be wrapped by a
div.DTE
class to ensure they don't conflict, but its possible something has been missed. As I say, I'd need a link to a page showing the issue so I can inspect the page to be able to diagnose it.Allan