Fix clamp undefined step
This commit is contained in:
parent
7fff670683
commit
f35077afce
|
@ -336,7 +336,7 @@ function configDialog(style) {
|
|||
return max;
|
||||
}
|
||||
// Don't restrict to integer values if step is undefined.
|
||||
if (typeof va.step === 'undefined') {
|
||||
if (!isNumber(va.step)) {
|
||||
return value;
|
||||
}
|
||||
const step = va.step || 1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user