Closed jbphet closed 1 year ago
Fixed over in #105. Thanks for the report. The bug was actually over in axon, where observableArray needed to lock in its lengthProperty listeners when it was marked as having order dependencies https://github.com/phetsims/axon/commit/4f571cbc738bdcba5f9f49050c3f2a1eddde9110
This was found during the "Does the sim behave correctly when listener order is shuffled?" step of the code review, see https://github.com/phetsims/build-a-nucleus/issues/165.
When testing with randomized listener order, the buttons for adding protons, neutrons, and both can be left in a disabled state after a reset.
To duplicate: