Skip to content
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

Fix inputProps incorrectly nested under InputProps #2406

Merged
merged 1 commit into from
Sep 6, 2020

Conversation

glassblowerscat
Copy link
Contributor

Description

In MTableEditField, some material-ui input components were being passed
inputProps, which are for passing attributes to the rendered input element,
inside InputProps, which are for passing props to the wrapped material-ui
Input component. This resulted in the aria-label for these components
(which was all that was being passed in inputProps) being incorrectly applied,
throwing a development error and failing to render the aria-label in the DOM.

Impacted Areas in Application

List general components of the application that this PR will affect:

  • MTableEditField

In `MTableEditField`, some `material-ui` input components were being passed
`inputProps`, which are for passing attributes to the rendered `input` element,
inside `InputProps`, which are for passing props to the wrapped `material-ui`
`Input` component. This resulted in the `aria-label` for these components
(which was all that was being passed in `inputProps`) being incorrectly applied,
throwing a development error and failing to render the `aria-label` in the DOM.
Copy link
Owner

@mbrn mbrn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contribution

@mbrn mbrn merged commit e81700a into mbrn:master Sep 6, 2020
@glassblowerscat glassblowerscat deleted the bug/edit-field-input-props branch September 6, 2020 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants