react-data-table-component icon indicating copy to clipboard operation
react-data-table-component copied to clipboard

Boolean column property button triggers console warning

Open raffaele-clevermind opened this issue 1 year ago • 5 comments

Describe the bug

After updating to version 7.6.2, which should support styled-components ^6.0.0, when using the boolean collun property button it generates a warning as reported below

Received true for a non-boolean attribute button. If you want to write it to the DOM, pass a string instead: button="true" or button={value.toString()}.

To Reproduce

Steps to reproduce the behavior:

  1. Intall react-data-table-component ^7.6.2
  2. Install styled-components ^6.1.8
  3. Use a table component with a column with the proprerty "button" set to true
  4. in the browser console check for the warning as described iin the description of the issue

Expected behavior

No warnings in the console

raffaele-clevermind avatar Jan 15 '24 09:01 raffaele-clevermind

Not all CellProps properties are updated to transient props yet. As far as I can find most other components are fine.

randydijkstra avatar Jan 16 '24 10:01 randydijkstra

The same problem as mentioned in: https://github.com/jbetancur/react-data-table-component/issues/1161 and https://github.com/jbetancur/react-data-table-component/issues/1185

anders2410 avatar Jan 19 '24 12:01 anders2410