-
Notifications
You must be signed in to change notification settings - Fork 52
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
Adds missing props to InputBase types #228
base: master
Are you sure you want to change the base?
Adds missing props to InputBase types #228
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I noticed, the TextField
didn't automatically get these like I thought it would--it extends FormControl.publicProps
instead. Should I also add these to TextField.props
explicitly or is there a different approach you all would prefer?
Yes, please spread them into the TextField props if possible. There might be an overlap though. |
@fhammerschmidt I've pushed a WIP commit that shows one way we could accomplish this, by creating more 'partial' record types and composing them more directly where they're being used |
| @as("soft") Soft | ||
| @as("off") Off | ||
|
||
type inputBaseComponentPublicProps = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, this should probably be in CommonProps
for inputs / textarea props
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, please move them.
fbfa51b
to
8996322
Compare
Apart from the conflicts and the commented-out props that got overridden (I think you can just remove them), is this ready? |
inputBaseComponentProps: minLength, wrap publicProps: maxLength, minLength, wrap resolves cca-io#224
8996322
to
57c7ee8
Compare
inputBaseComponentProps: minLength, wrap
publicProps: maxLength, minLength, wrap
resolves #224