Closed
Description
Describe the bug
Support for passing an array to the 'field' attribute of a column was previously added in #417 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.
To Reproduce
Steps to reproduce the behavior:
- Pass a string array to a column field.
- Run in development.
- Go to dev console.
- See error.
Expected behavior
Column fields of type string array should not result in runtime errors.
Demo
Solution
Update prop-types.js
to allow both type string array and type string for columns.field
.
This is an easy fix, which I will gladly put up for review.