asascience / ott-coops

Project Tracking for OTT Co-Ops
1 stars 0 forks source link

Allow users to input "-" in range inputs #467

Closed ndellicarpini closed 2 years ago

ndellicarpini commented 2 years ago

RangeSlider.tsx validates its inputs within the component so that it can't send NaN to whatever component is using it. However, this validation does not allow a user to type "-" in the input fields, so negative numbers can't be typed (as the first character is "-", the validation immediately blocks the user's input, it works fine if you type your number then go back and add the "-").