Suffixes k, m, b don't convert numbers properly
3 months ago
MARLIS
147 Total Respect
MARLIS
147 Respect
3 months ago
Responses
3 months ago
SHREDDERCHU
209 Total Respect
SHREDDERCHU
209 Respect
3 months ago
If looking into this, it would be nice to also include these for mobile users, since they don't work anywhere on mobile
To my knowledge, this only occurs in the market, in the quantity input field, so it's a very minor bug.
After changing the item, the maximum value of the input changes too, but the html 'max' attribute is not updated.
This causes the logic that converts '1k' to '1,000' to fail if the actual limit is below 1000.
I came across it while updating the MegaScript, my fix there was to directly use the Autonumeric instance to get the max value instead of the html attribute. E.g.
const max = AutoNumeric.getAutoNumericElement(input).getSettings().maximumValue;