Archived topic
How to close the previous sub-menu automatically when opening the next one?
6 replies · Started by Luiz Guilherme on May 5, 2022
Hello everybody.
I'm using Menu OFF Canvas. and I noticed an interesting behavior.
In Menu Off Canva, when opening a menu item (Primary item), and then opening another primary item, the first one is closed.
This is great because the screen isn't full of options, which can complicate viewing.
However, this behavior is not repeated in the sub-menus items.
After opening the first sub-menu, and then try to open other sub-menus within the first one.
they all get open, they don't just leave 1 open like in the first level menu.
How can I reproduce this behavior on all sub-menu levels?
See private link below
A second question:
Is it possible to reproduce this behavior in the Desktop Main Menu (Not only in the Off Canva Menu)?
Hi Luiz,
The behavior is controlled by JavaScript, it will require custom coding to re-write the JavaScript which is out of the scope of the support forum Unfortuanly.
Is it possible to reproduce this behavior in the Desktop Main Menu (Not only in the Off Canva Menu)?
No, please see my last reply.
Anyone else who might be reading this post, could you point me to some material?
Or even the part of the code that executes this function in the "Off Canva Menu" so that I can study and try to implement it in the other sub-menus?
Many thanks to anyone who can help.
Could someone from the team indicate some material that helps in this matter?
Hi there,
its not something we have a solution for at this time, it's something we will review for a future update.