Files
element-plus/packages/components/table
Delyan Haralanov 2b7b566d17 fix(components): [table] compatible with window non-existence (#19837)
ElTable's doLayout method is debounced and scheduled (relying on setTimeout) which causes problems in testing(Vitest). Sometimes the testing environment(jsdom) is destroyed before doLayout() executes which causes error due to requestAnimationFrame not existing.
To mitigate this issue can check if the window exists which is a good indication that jsdom has not been thorn down yet.
2025-02-14 21:36:41 +08:00
..