Hi,
I have some code in my main symbol that disables the main symbol and loads a screen relative subsymbol. The code seems to work perfectly and is as follows:
const ShopList = symbol.symbolDefinitions.ShopList();
parent.on(“pointerdown”, parent_pointerdown);
function parent_pointerdown() {
ShopList.display();
symbol.hide();
}
ShopList.on(“close”, display_parent_symbol);
function display_parent_symbol() {
symbol.show();
}
I then have code on a close button within the loaded subsymbol that when pressed will reload the main symbol however it will not close the current subsymbol (when pressed I see both symbols). It is unusual as I have used this same code on several projects without issue The code is as follows:
parent.on(“pointerdown”, parent_pointerdown);
function parent_pointerdown() {
symbol.close();
}
I would greatly appreciate your help with this please.
Thanks!