S
S
Sergey Zverev2019-02-19 22:06:24
JavaScript
Sergey Zverev, 2019-02-19 22:06:24

Why doesn't .dropdown('toggle') work in Bootstrap 4?

Hello.
Recently moved to a new version: Bootstrap 4 .
In the old version, it worked, but in the new version, hiding the div with the class: dropdown-menu does not work .

$('.dropdown-toggle').click(function() {
$(this).dropdown('toggle');
});

Reveals, but does not hide when clicked again. Do not display errors in console.

Please help me understand the problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Kidin, 2019-10-18
@and_y

Found a solution?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question