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:
@@ -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