Mobile menu (collapsed) automatically

Does anyone know how to make the menu on mobile closed when opened?
Currently when you click on the hamburger icon to open the menu. All the drop-down list are automatically opened without clicking on them.

How do you make it so they are closed upon opening the menu. Then when selecting they will drop-down?

Any help would be greatly appreciated.