Adding Main Component Disables Some Sub-components' Functionality

I am designing a side menu for the dashboard. I have created components for the list of items and established two states for each list item: active and inactive. However, some components contain dropdown lists. When I integrate the side menu as the main component, certain dropdown list items fail to expand, but they function properly without the side menu being part of the component.
how do I solve this problem?

Hi there,

Thanks for reaching out. It could be the same problem with this, so could you check this comment ? Variants in nested components do not change size - #10 by dvaliao