Allow commas as number input

This commit is contained in:
casper 2022-02-08 16:48:10 +01:00
parent 3a74417e6e
commit 4737fed9d4

View File

@ -51,7 +51,7 @@ Item
valueFromText: function(text)
{
return parseFloat(text.substring(prefix.length, text.length - suffix.length)) / base.stepSize;
return parseFloat(text.substring(prefix.length, text.length - suffix.length).replace(",", ".")) / base.stepSize;
}
textFromValue: function(value)