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: add string array to columns.field prop types #768

Merged

Conversation

hill-giant
Copy link
Contributor

Related Issue

Closes #767

Description

Support for passing an array to the field attribute of a column was previously added to allow the selection of keys with full-stops. Although the the type of the field was updated in the type declaration file, prop-types.js was not updated to reflect these changes, resulting in runtime errors.

Related PRs

List related PRs against other branches:

branch PR
jahredhope:select-by-array link

Impacted Areas in Application

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

  • Runtime type checking for columns.field.

Support for passing an array to the 'field' attribute of a column was
previously added to allow the selection of keys with full-stops.
Although the the type of the field was updated in the type declaration
file, 'prop-types.js' was not updated to reflect these changes,
resulting in runtime errors.
@hill-giant hill-giant marked this pull request as ready for review May 16, 2023 15:33
@hill-giant hill-giant requested a review from oze4 as a code owner May 16, 2023 15:33
@Domino987 Domino987 merged commit b4d8f91 into material-table-core:master May 17, 2023
3 checks passed
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.

Mismatch between compile-time and runtime type checking for columns.field
2 participants