Return to Snippet

Revision: 77443
at September 22, 2019 22:14 by cerxx


Initial Code
$('.dropdown-toggle').click(function(e) {
  e.preventDefault();
  setTimeout($.proxy(function() {
    if ('ontouchstart' in document.documentElement) {
      $(this).siblings('.dropdown-backdrop').off().remove();
    }
  }, this), 0);
});

Initial URL
http://qaru.site/questions/817615/drop-down-menu-not-working-on-mobile-devices#2991010

Initial Description
It works for me

Initial Title
Drop-down menu does not work on mobile devices

Initial Tags
jquery

Initial Language
JavaScript