File tree Expand file tree Collapse file tree
frontend/src/components/widgets/inputs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 127127
128128 // The simple `clamp()` function can't be used here since `undefined` values need to be boundless
129129 let sanitized = value ;
130- if (typeof min === " number" ) sanitized = Math .max (sanitized , min );
131- if (typeof max === " number" ) sanitized = Math .min (sanitized , max );
132-
133130 text = displayText (sanitized , unit );
134131 }
135132
141138 let newValueValidated = newValue !== undefined ? newValue : oldValue ;
142139
143140 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-
147141 if (isInteger ) newValueValidated = Math .round (newValueValidated );
148142
149143 rangeSliderValue = newValueValidated ;
You can’t perform that action at this time.
0 commit comments