Hello!
Please, help me with the writing correct formulas for my case.
I create a new component to make a drop-down menu for site navigation.
The buttons are collected into two vertical containers: the first container is the main menu and the second container is the child menu.

Requirements:
1. Child menu of the "Fact" button should appear when I click on the "Fact" button.
2. Child menu of the "Fact" button should hide when I click on the "Plan" button.
3. Child menu of the "Plan" button should appear when I click on the "Plan" button.
These formulas are incorrect:
Variant 1.

Here, nothing happens when I click on the "Fact" button.
Variant 2.

Here, the child menu is appear when I click on the "Fact" button, but it dissapear when I stop holding the button.
What are the correct formulas for my case?
Thank you in advance.