hxf31891 / react-gradient-color-picker

An easy to use color/gradient picker for React.js
MIT License
126 stars 39 forks source link

Unable to select `0` as a stop position. #99

Open M-J-Robbins opened 1 week ago

M-J-Robbins commented 1 week ago

Hiya, I'm loving this tool and I think I've found a small bug. Initially I thought this was something I had done but i also realised that it appears on the demo site too.

When dragging the stop position in the selector, I'm unable to drag it down to 0, the lowest available value seems to be 1. On the other end i can go up to 100 without issue.

This is also an issue when typing in a value if I type 0 is doesn't register, but other values are fine. So I'm guessing it's some kind of validation going on that sets the range from 1 to 100 rather than 0 to 100.

image
hxf31891 commented 1 week ago

@M-J-Robbins Interesting I haven't seen this one yet. Will try and patch ASAP.