Bug ReportSuffixes k, m, b don't convert numbers properly

3 months ago

MARLIS

143 Total Respect

MARLIS

143 Respect

3 months ago

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;

 

Responses

3 months ago

SHREDDERCHU

197 Total Respect

SHREDDERCHU

197 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