We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d106d9 commit c05038bCopy full SHA for c05038b
packages/components/table/hooks/useAffix.ts
@@ -77,6 +77,7 @@ export default function useAffix(props: TdBaseTableProps) {
77
const updateAffixHeaderOrFooter = () => {
78
if (!isAffixed.value && !isVirtualScroll.value && !tableContentRef.value) return;
79
const pos = tableContentRef.value?.getBoundingClientRect();
80
+ if (!pos) return;
81
const headerRect = tableContentRef.value?.querySelector('thead')?.getBoundingClientRect();
82
const headerHeight = headerRect?.height || 0;
83
const footerRect = affixFooterRef.value?.getBoundingClientRect();
0 commit comments