docs: add section on row click in DataTable (#11694)

* docs: add section on row click in DataTable

* update subscriptions example
This commit is contained in:
Shahed Nasser
2025-03-03 18:08:06 +02:00
committed by GitHub
parent ab96ad3b82
commit 92514885e4
12 changed files with 10972 additions and 10678 deletions
@@ -58,7 +58,14 @@ export const useActiveOnScroll = ({
return []
}
return root?.querySelectorAll(querySelector)
const filteredHeadings: Element[] = []
root?.querySelectorAll(querySelector).forEach((heading) => {
if (heading.id) {
filteredHeadings.push(heading)
}
})
return filteredHeadings
}, [isBrowser, pathname, root, enable])
const setHeadingItems = useCallback(() => {
if (!enable) {