-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to style input element with the new classNames API in 5.7 #5538
Comments
@lukebennett88 - any update on this one? I'm having an issue with text being hidden in the input element, where adjusting the input width would resolve the issue. But I have no way to change the input's styles per the main issue of this posting. |
The |
I was facing the same issue of styling input field and other elements been hidden in input field. Firstly i just rename the classes using props like this: |
Can confirm, input doesn't style the input element. |
Same issue here. Get puzzled by debugging style in input, but find out all styles is applying to |
In PR #5457 the
classNames
API was added - but I think theinput
one is not correct?Previously, the below styling for an "input" would target the
<input />
element:However the below code instead targets the
input-container
div around it:I think its a mistake in here? https://github.com/JedWatson/react-select/pull/5457/files#diff-07753302222b58b652fb23698902955708f7f700fdeecf15980423588766fef4R107-R112
Possible you need to expose
input
andinputContainer
separately, not sure how to style theinput
as before withclassNames
The text was updated successfully, but these errors were encountered: