Closed riteshsamala closed 4 years ago
@riteshsamala
Found a bug with this branch on tdevel. If you get an equation wrong twice, the node editor doesn't close on your second attempt. It's erroring out in the console with "Assertrion failed: dom.byId failed for
Steps: 1) Open "Peregrine Falcon" with parameters given and units skipped. section non-class-models, folder "chapter 1 problems-tca". 2) Create a new equation and select DRT and Dive. 3) Don't change the node names, just hit Done. The node closes and the incorrect nodes are created. The equation is red as expected. 4) Open the equation again. Change DDive to Distance (the correct answer). 5) Click Done. Bug happens.
If this doesn't happen in the branch where students get three attempts, it check it after merging with this one.
@riteshsamala That fixed the bug, but now https://github.com/Dragoon-Lab/topomath/issues/543 doesn't work anymore (which was an earlier commit on this PR).
Follow the same steps as above, then check the model after closing the node. The alien node is still present.
Edit: After further testing we've determined this only happens on touch machines. Will email Kurt to see if that's a showstopper.
Tested thoroughly in trials Feb 15 and before.
Handles issues topomath #367 , #531