R
R
Risent Veber2016-03-05 20:06:37
JavaScript
Risent Veber, 2016-03-05 20:06:37

Why doesn't bootstrap dropdown menu work on mobile devices?

The bootstrap dropdown menu does not work on mobile devices - when you touch a menu item, it closes, and the link does not follow.
I thought that the problem was in js libraries like jquery_ujs, turbolinks - disabling them still does not help. At the same time, I know sites written in bootstrap, in which there is no such problem.
Colleagues, what could be the reason for such a problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arthur, 2016-03-05
@risentveber

is there something wrong with the z-index on the dropdown-menu element?
for some reason, zeroing was added to the default bootstrap ones.

D
Dmitry, 2016-03-05
@thewind

What do you have in href attributes? Is there an inline onclick attribute?
href="javascript:void(0);" helped me instead of href="#" and remove all inline onclicks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question