File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
frontend/src/components/widgets/inputs Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change 127
127
128
128
// The simple `clamp()` function can't be used here since `undefined` values need to be boundless
129
129
let sanitized = value ;
130
- if (typeof min === " number" ) sanitized = Math .max (sanitized , min );
131
- if (typeof max === " number" ) sanitized = Math .min (sanitized , max );
132
-
133
130
text = displayText (sanitized , unit );
134
131
}
135
132
141
138
let newValueValidated = newValue !== undefined ? newValue : oldValue ;
142
139
143
140
if (newValueValidated !== undefined ) {
144
- if (typeof min === " number" && ! Number .isNaN (min )) newValueValidated = Math .max (newValueValidated , min );
145
- if (typeof max === " number" && ! Number .isNaN (max )) newValueValidated = Math .min (newValueValidated , max );
146
-
147
141
if (isInteger ) newValueValidated = Math .round (newValueValidated );
148
142
149
143
rangeSliderValue = newValueValidated ;
You can’t perform that action at this time.
0 commit comments