to-boldly-go / tbg-shipdesigner

Ship designer webapp for To Boldly Go
2 stars 2 forks source link

Parts Editor: Stats selected but unchanged are set to 0 even if they have an existing value #67

Closed synchronizedwritersblock closed 6 years ago

synchronizedwritersblock commented 6 years ago

In the Parts Editor if a stat is selected, but has not been changed, and then is deselected in some way, it is set to 0.

This is especially an issue because a common use-case is to use tab to fill out a part's stats, which will mean that tabbing through stats you don't want to change will set them to 0. It also happens when you do something like "Save current parts" after having edited a part but forgotten to hit enter or click outside.

I believe this only happens for certain fields, the part name or year is not set to 0, may be numbers only?

lbmaian commented 6 years ago

This is a regression from 370c1e9f7060a3545bb0bf5b76d25d4bad8878d8 - fix coming up.