Closed Nancy-Salpepi closed 11 months ago
This is not the intended behaviour as these are two separate undo buttons. I believe this behaviour may be happening since the visibility of the undo button is controlled by the undoButtonEmitter
which is fired in the common BANScreenView
. I will look more into this.
https://github.com/phetsims/build-a-nucleus/blob/e15b04d26ef16b510eb94f44300d5a33c86f963e/js/common/view/BANScreenView.ts#L167-L172
Excellent. Let me know if you want assistance.
Meeting with @zepumph, realized that the hideUndoButtonEmitter
should not be static in BANScreenView
. Made it non-static in the commit above. This seems fixed now on my end after only testing it a bit. @Nancy-Salpepi feel free to close if it's all good!
This looks fixed on main. Should we keep this open for verification in the next rc?
Cherry picked onto 1.1 branch above. Ready for QA verification in RC spot check. Please feel free to close.
This looks good in rc.2
Test device iPad and Mac
Operating System iOS17 and OS14
Browser safari/chrome
Problem description For https://github.com/phetsims/qa/issues/988, I noticed that if I press a button, such as the decay button, on one screen the Undo button on the other screen will disappear. Was that the intended behavior?
Steps to reproduce
The same thing happens if I start on the second screen and then press a button on the first.
Visuals
https://github.com/phetsims/build-a-nucleus/assets/87318828/e7030634-a17d-436c-a946-9e61a10c9454