Why not public class?

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

When you click on the menu add class active when clicking on closeBtn-wrapper clean it but it is not removed, although the status is updated, why?Due to the fact that closeBtn child menu? If Yes, then how to avoid it?
April 19th 20 at 12:36
1 answer
April 19th 20 at 12:38
It is possible here so:



Making everything neat and clean.
There is no possibility to change the layout. - Kamille4 commented on April 19th 20 at 12:41
@Kamille4, sorry of course that you do not have the ability to change the layout, but may have then you can use dynamic insert desired layout via JS? In the initial state of your layout devoid of logic. - adolph.Gleason9 commented on April 19th 20 at 12:44
@adolph.Gleason9, well that's not my layout,Yes I did - Kamille4 commented on April 19th 20 at 12:47

Find more questions by tags JavaScript