React Select wrapped in Controller cannot be styled #3697
-
I am trying to use a React Select wrapped Component control, but Controller appears to inject a bunch of CSS on the fly that prevents normal styling (of either) using className. This is quite annoying, so I wonder if I'm doing something wrong. I have a drop down built as shown below. I'm showing the className at both levels for illustration, but at either level, it is totally ignored:
Either way, you get this hosed up rendering that looks like this: Presumably because of all this injected CSS: I haven't been able to find any way around this. Any suggestions would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
you can use eg:
|
Beta Was this translation helpful? Give feedback.
you can use
render
prop, https://react-hook-form.com/api/#Controllereg: