mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-23 17:50:25 +08:00
fix: modalElIterator可能为空,导致报错 (#3738)
This commit is contained in:
parent
96ac362fa6
commit
162a0d0252
@ -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…
Reference in New Issue
Block a user