You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Include relevant code or preferably a code sandbox
Describe the bug
When defining a column with the grow attribute in a React Data Table, the table renders correctly (columns grow as expected), but a warning appears in the browser console:
styled-components: it looks like an unknown prop "grow" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via (connect an API like @emotion/is-prop-valid) or consider using transient props ($ prefix for automatic filtering.)
To Reproduce
Steps to reproduce the behavior:
Define a data table columns array, including a column with grow, e.g.:
This is also the case for other properties set, like minWidth, with that one you additionally get this in the console:
React does not recognize the minWidth prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase minwidth instead. If you accidentally passed it from a parent component, remove it from the DOM element. Error Component Stack
Issue Check list
styled-components
Describe the bug
When defining a column with the
grow
attribute in a React Data Table, the table renders correctly (columns grow as expected), but a warning appears in the browser console:styled-components: it looks like an unknown prop "grow" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via (connect an API like @emotion/is-prop-valid) or consider using transient props ($ prefix for automatic filtering.)
To Reproduce
Steps to reproduce the behavior:
<DataTable columns={columns} data={...} />
Expected behavior
No console warnings should be emitted when using the documented grow property on a column.
Code Sandbox, Screenshots, or Relevant Code
Versions (please complete the following information)
The text was updated successfully, but these errors were encountered: