asascience / ott-coops

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

Changing High Value in Traffic Light Tool Changes the Low Value #478

Closed jamesdoyle21 closed 2 years ago

jamesdoyle21 commented 2 years ago

When I manually set the low and high value of a rule in the traffic light tool, the low value gets switched to the first number I type in the high value text box.

https://user-images.githubusercontent.com/82955395/171702628-1d7b1ef4-6006-4042-9864-28e173cf4407.mp4

ndellicarpini commented 2 years ago

what's happening here is the high value is being set to 2, the range slider notices that the high value < low value, and so the low value is set to the high value. I can get rid of the check that validates that the low and high values are low and high respectively, but I don't know if that could cause issues?

jamesdoyle21 commented 2 years ago

Maybe do the check when the user saves the layer?