Skip to content

Commit f092bfe

Browse files
committed
close expanded rows on filter change
1 parent 96bc881 commit f092bfe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/DataTable/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ const DataTable = <TData, TValue>({
7373
setIsVisible(false)
7474
const timer = setTimeout(() => {
7575
setCurrentData(data)
76+
table.resetExpanded()
7677
setIsVisible(true)
7778
previousDataRef.current = data
7879
}, 25) // Adjust this value to match your CSS transition duration

0 commit comments

Comments
 (0)