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:
1 parent
ab96ad3b82
commit
92514885e4
12 files changed
+10972
-10678
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user