Suffixes k, m, b don't convert numbers properly
3 days ago
MARLIS
64 Total Respect
MARLIS
64 Respect
3 days ago
Responses
2 days ago
SHREDDERCHU
132 Total Respect
SHREDDERCHU
132 Respect
2 days 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;