jbetancur / react-data-table-component

A responsive table library with built-in sorting, pagination, selection, expandable rows, and customizable styling.
https://react-data-table-component.netlify.app
Apache License 2.0
2.04k stars 411 forks source link

Received `true` for a non-boolean attribute `center`. #1161

Open Anandhu1991 opened 1 year ago

Anandhu1991 commented 1 year ago

Issue Check list

Received true for a non-boolean attribute center.

If you want to write it to the DOM, pass a string instead: center="true" or center={value.toString()}. at div

Describe the bug

Used 'Center' attribute to align the cell content in column

To Reproduce

GEtting the following error in console

Expected behavior

A clear and concise description of what you expected to happen.

Code Sandbox, Screenshots, or Relevant Code

Please include a codesandbox to help expedite troublshooting.

https://codesandbox.io/embed/react-data-table-sandbox-ccyuu

Otherwise, add screenshots and/or complete sample code to help explain your problem.

Versions (please complete the following information)