Bug: Editing additive percents can lead to the calculator saying a valid amount is invalid

MadHatter

New member
Joined
Jan 24, 2020
Messages
3
To reproduce, add an additive to a recipe. I chose Activated Charcoal. Set the unit to "% of oils".
Put the cursor in the "amount" field.
Select all.
Type "0.25".
Click outside the field.
Click inside the field again and delete the "5" at the end (WITHOUT using select all to re-enter the value.)
Click outside the field. The value now says "0.2 % of oils".
Result 1: the value is highlighted in red, since the calculator thinks it is invalid. It should be valid.
Next, change the value to 0.25 WITHOUT using select-all.
Result 2: the value is still highlighted as invalid. It should be valid.
The workaround: Click the field and select all. Type "0.25". Click outside the field, and the value is now accepted as valid.
 
Top