Closed Nancy-Salpepi closed 1 year ago
This error also appears on main if I press Reset All with the mouse while a card is grabbed with the keyboard.
Oooh good catch! I'll take a look.
This was caused by a commit fixing a different bug in: https://github.com/phetsims/center-and-variability/issues/571.
This situation should now be addressed. We have to reset the focusedSoccerBallProperty before resetting the sceneModels. I made sure to move other keyboard focus related Properties before the sceneModel reset as well since it makes sense that we want to reset our general Properties before triggering reset logic in the sceneModels that rely on those Properties.
Over to @samreid and @matthew-blackman for review.
@Nancy-Salpepi this should also be ready to check on main.
Commit looks good - nice change @marlitas. Moving the scene model reset to the end makes thing very clear.
Up to you if you want to close this issue or keep it open while #571 is still open.
Thanks for the review @matthew-blackman! I think this is ready to close.
Test device MacBook Air M1 chip
Operating System 14.0
Browser Safari 17
Problem description While verifying an issue on main, the sim froze when I pressed the Reset All button with the mouse while a soccer ball had focus. I don't see this issue in https://github.com/phetsims/qa/issues/985.
Steps to reproduce
Visuals