DataTable: conditional row reorder shows "false" instead of hiding reorder icon #4854
Labels
Resolution: Workaround
Issue or pull request contains a workaround. It needs to be reviewed further by Core Team
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Describe the bug
I'm attempting to use the
showRowReorderElement
prop in the DataTable component, and in those cases where the RowReorderElement should be hiding, it renders afalse
text instead.On a side note, is it possible to provide a fallback component for the column in those cases where the
showRowReorderElement
function evaluates to false?Here's an image of what the rendered table looks like in the aforementioned column.
Reproducer
CodeSandbox
PrimeReact version
9.6.0
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
showRowReorderElement
function, and a column with the rowReorder prop set to trueExpected behavior
I expected the row that makes the
showRowReorderElement
evaluate to false to be hidden, instead of renderingfalse
The text was updated successfully, but these errors were encountered: