Fix clamp undefined step

This commit is contained in:
Rob Garrison 2018-09-18 07:46:54 -05:00
parent 7fff670683
commit f35077afce

View File

@ -336,7 +336,7 @@ function configDialog(style) {
return max; return max;
} }
// Don't restrict to integer values if step is undefined. // Don't restrict to integer values if step is undefined.
if (typeof va.step === 'undefined') { if (!isNumber(va.step)) {
return value; return value;
} }
const step = va.step || 1; const step = va.step || 1;