Defect? Not possible to expand/show membersMenu from code

I’ve added a members menu, which is collapsed/hidden on load - set in the code properties panel. In certain situations, however, I need to expand/show the menu.

The entire menu basically consists of two components: membersMenu and horizontalMenu. Even though horizontalMenu can be expanded/shown, membersMenu cannot? Why?

$w.onReady(async function () {
	$w("#membersMenu2").expand();
	$w("#membersMenu2").show();
	$w("#horizontalMenu2").expand();
	$w("#horizontalMenu2").show();
}

The editor says that .expand() and .show() are not properties of membersMenu. Why are they properties of horizontalMenu then? They work together… Does not make any sense.

Issue on render:

TypeError: l is not a function
    at Array.<anonymous> (AppController.ts:52)
    at composeSDKFactories.js:10
    at v (wixSelector.ts:158)
    at wixSelector.ts:190
    at Array.map (<anonymous>)
    at wixSelector.ts:170
    at wixSelector.ts:252
    at c (lodash.min.js:10)
    at Function.yf [as map] (lodash.min.js:85)
    at s (lodash.min.js:138)

Hey, so we meet again.

This issue sounds familiar. I think I’ve run into this myself, and as I recall, it is an issue. I’m not sure it’s considered a bug, rather it’s the behavior, or the limitation, of the Members Menu.

I’m going to send this on the QA for evaluation as I would love to hear what’s up regarding this menu.

Forgot to mention, please post the URL of your site and explain where and how to see the problem.

Are you missing a closing parenthesis and semi-colon at the end of the onReady()? Like this:

$w.onReady(async function () {
 $w("#membersMenu2").expand();
 $w("#membersMenu2").show();
 $w("#horizontalMenu2").expand();
 $w("#horizontalMenu2").show();
});

Please post the URL if you are still having issues.

I quickly typed it here, the parenthesis and semi-colon are there in my code.

Well really not that much to explain I think - the editor says that .expand() and .hide() are not valid properties

while you are able to set these in the code properties panel, on load:

Workaround is to put the menu in a box and show/hide the entire box?

@vervoortyves And the URL for QA? They requested it.

@yisrael-wix it’s a dynamic page which depends on both session data and database content served to a particular user, so you’ll not be able to see much, but here it is: https://thefashionsocietyh.editorx.io/tfs-dev-x/explore

@vervoortyves Don’t worry about QA, they can figure out anything.

I sent this on to them. Thanks