Browse Source

fix: modalElIterator可能为空,导致报错 (#3738)

pull/3741/head
KaneOne 2 years ago
committed by GitHub
parent
commit
162a0d0252
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      src/components/Table/src/hooks/useTableScroll.ts

1
src/components/Table/src/hooks/useTableScroll.ts

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

Loading…
Cancel
Save