You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the Graphical Menu documentation, each menu can have a "back" key in the "" section.
My understanding is that this could/should be preferred over explicitly creating menu options for moving between menus.
However, on the Bangle.js 1 this only works as intended when the user opens the submenu for the first time.
On the second (and following) entries there will be two < Back options in the menu.
One at the top, one at the bottom.
This is because after entering the menu for the first time, a "< Back" key is created in the menu object, outside of "".
Repro
Execute test code on the Bangle.js 1 emulator:
varmainmenu={"" : {"title" : "-- Main Menu --"},"Submenu" : function(){E.showMenu(submenu);},};varsubmenu={"" : {"title" : "-- SubMenu --","back": function(){E.showMenu(mainmenu);}},"test": "",};E.showMenu(mainmenu);
Thanks! That's a pain - I'm surprised this hasn't come up before as it will have been like this for a while, but maybe for the majority of uses E.showMenu gets called with a newly created argument each time so it's not obvious.
Have you seen this on a real device, or is it emulator only?
According to the Graphical Menu documentation, each menu can have a
"back"
key in the""
section.My understanding is that this could/should be preferred over explicitly creating menu options for moving between menus.
However, on the Bangle.js 1 this only works as intended when the user opens the submenu for the first time.
On the second (and following) entries there will be two
< Back
options in the menu.One at the top, one at the bottom.
This is because after entering the menu for the first time, a
"< Back"
key is created in the menu object, outside of""
.Repro
At this point however, the menu renders correctly with only one
< Back
option.This time, there will be two
< Back
options, one at the top and one at the bottom, both working.The text was updated successfully, but these errors were encountered: