I am trying to manually toggle a bootstrap dropdown. This script used to work until recently:
$(function () {
$('.role-toggler').on('click', function (e) {
$(this).find('.dropdown-toggle').dropdown('toggle');
e.stopPropagation();
});
});
However when I try click the dropdown now I get:
Uncaught Error: Method toggle does not exists on jQuery.dropdown
I am using Material Design for Bootstrap, Bootstrap 3.3.6 and jQuery 2.1.4. I recently updated my packages which included bootstrap and jquery, which may have caused this issue.