G
G
godsplane2020-04-17 23:04:39
JavaScript
godsplane, 2020-04-17 23:04:39

Why is the class not removed?

https://codepen.io/poylar/pen/abvNeVe

When menu is clicked, I add the active class, when closeBtn-wrapper is clicked, I remove it, but it is not removed, although the state is updated, why? Due to the fact that closeBtn is a child of menu? If yes, how to avoid it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question