Greater-London-Authority / ldn-viz-tools

https://greater-london-authority.github.io/ldn-viz-tools/
1 stars 0 forks source link

Error state of Select does not reset correctly #295

Closed jamesscottbrown closed 1 month ago

jamesscottbrown commented 2 months ago

On the <Select> component (and presumably any component using the same InputWrapper), setting the error prop to true makes the text of the label red, and applies a red border to the input itself.

If the prop is then changed to false, then the color of the label updates correctly, but the red border remains.

With error={true}:

image

After changing to error-{false}:

image

jamesscottbrown commented 1 month ago

This was resolved in https://github.com/Greater-London-Authority/ldn-viz-tools/pull/311