TreeTable/Tree: filtering should use content of TreeNode.data
(if defined)
#7460
Labels
Status: Discussion
Issue or pull request needs to be discussed by Core Team
Describe the bug
Defining a
TreeNode
forTreeTable
(orTree
) as follows:with column:
<Column field="name" header="" expander>
will render the
Tree
correctly. However, when having custom jsx in thedata.name
field, theTreeTable.globalFilter
does not work anymore.The filtering works when using a
TreeNode
without customjsx
:Reproducer
No response
System Information
Steps to reproduce the behavior
TreeTable
(orTree
) with aTreeNode
like aboveglobalFilter
toTreeTable
(withstate
-hook) and input field:<InputText type="search" placeholder="Search" onChange={e => setGlobalFilter(e.target.value)} />
Expected behavior
The filtering should filter the content of
TreeNode.data
-fields.The text was updated successfully, but these errors were encountered: