Skip to content

Commit

Permalink
fix: modalElIterator可能为空,导致报错 (vbenjs#3738)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaneOne authored Apr 13, 2024
1 parent 96ac362 commit 162a0d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Table/src/hooks/useTableScroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export function useTableScroll(
let modalElIterator: HTMLElement = tableEl.parentElement!;
let modalIsFullscreen = false;
while (modalElIterator !== document.body) {
if(!modalElIterator) break;
if (modalElIterator.classList.contains('ant-modal')) {
modalEl = modalElIterator;
modalWrapEl = modalEl.parentElement;
Expand Down

0 comments on commit 162a0d0

Please sign in to comment.