Can't use a decimal step. Has to be any because browsers suck.

This commit is contained in:
Isaac Connor
2021-03-21 12:30:56 -04:00
parent 6d9a4ed661
commit 8a1284e2fa
2 changed files with 2 additions and 2 deletions

View File

@@ -202,7 +202,7 @@ function toPercent(field, maxValue) {
field.value = 100;
}
}
field.setAttribute('step', 0.01);
field.setAttribute('step', 'any');
field.setAttribute('max', 100);
}

View File

@@ -206,7 +206,7 @@ if ( count($other_zones) ) {
array('data-on-change'=>'applyZoneUnits', 'id'=>'newZone[Units]')
);
# Used later for number inputs
$step = $newZone['Units'] == 'Percent' ? ' step="0.01" max="100"' : '';
$step = $newZone['Units'] == 'Percent' ? ' step="any" max="100"' : '';
?>
</td>
</tr>