mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-02 00:15:12 +02:00
Merge pull request #5198 from jguthrie100/convert_input_to_float
Allow Float values in height input box
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