Closed Erovia closed 4 months ago
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?
This is reproducible on real hardware running 2v21 with all apps updated.
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
1) Execute test code on the Bangle.js 1 emulator:
2) State of submenu:
3) Entering the submenu:
At this point however, the menu renders correctly with only one
< Back
option.4) Leave the submenu and enter it again:
This time, there will be two
< Back
options, one at the top and one at the bottom, both working.