mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Changed parseInt to parseFloat
This commit is contained in:
@@ -92,7 +92,7 @@ export function uiFieldText(field, context) {
|
||||
|
||||
// parse as a number
|
||||
function parsed(val) {
|
||||
return parseInt(val || 0, 10) || 0;
|
||||
return parseFloat(val || 0, 10) || 0;
|
||||
}
|
||||
|
||||
// clamp number to min/max
|
||||
|
||||
Reference in New Issue
Block a user