Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: MBD Dropdown doesn't work in internet explorer

cestradawiboo pro asked 7 years ago


I want to know if   https://mdbootstrap.com/mdb-quick-start/ is updated? cause only in internet explorer the dropdowns doesn't show, 🙁

Mikołaj Smoleński staff answered 7 years ago


Please add the following code to Your scripts to have compatibility with IE:
$(document).on('click', function(e) {
 let dropdownEl = e.target.parentNode;
   if(dropdownEl.classList) {
     if(dropdownEl.classList.contains('dropdown-toggle')) {
       $('.dropdown-menu').removeClass('show');
       $(e.target.parentNode.parentNode.childNodes).addClass('show');
     } else {
       $('.dropdown-menu').removeClass('show');
     }
   } else {
   $('.dropdown-menu').removeClass('show');
 }
});




Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags