M
M
maxyumuyqu2019-04-25 13:29:07
Layout
maxyumuyqu, 2019-04-25 13:29:07

How can I make the menu close itself on click outside the "Burger" zone?

https://jsfiddle.net/Maxym/hvgc59o6/6/ - the button on which the menu opens - Mobile Menu
Moves the menu on the left. That is, they clicked outside the menu, the menu itself closed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Kuznetsov, 2019-04-25
@vitaly44

Track the click on the body with checking the menu target and the menu call link.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question