You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explanations:
It seems the element is passing an error props to all children element. As it is not sanitized in <CheckboxGroupInput> element, it will remains always at null for the <FormControl> element.
Current workaround:
My workaround is to sanitize props passed to <CheckboxGroupInput>, by creating a new component and simply removing the error prop:
What you were expecting:
I am expecting the label and the error message to be in red if there is an an error.
What happened instead:
Both label and error message remain grey, which makes error spotting more complicated.
Steps to reproduce:
Simply wrap a
<CheckboxGroupInput>
element into a<ReferenceArrayInput>
element, as follows:Here is the problem:
![Capture d’écran 2021-02-24 à 10 41 19](https://user-images.githubusercontent.com/16704840/108981301-e5edd480-768c-11eb-9631-2e80d4110b73.png)
Explanations:
It seems the element is passing an
error
props to all children element. As it is not sanitized in<CheckboxGroupInput>
element, it will remains always atnull
for the<FormControl>
element.Current workaround:
My workaround is to sanitize props passed to
<CheckboxGroupInput>
, by creating a new component and simply removing the error prop:Environment
The text was updated successfully, but these errors were encountered: