5 comments (5 comments)2 reactions (2 reactions)0 assignees (0 assignees)TypeScript54,612 forks (54,612 forks)batch import
Inactivehelp wanted🐛 Bug
Repository metrics
- Stars
- 98,031 stars (98,031 stars)
- PR merge metrics
- Avg merge 3d 4h (Avg merge 3d 4h)248 merged PRs in 30d (248 merged PRs in 30d)
Description
Reproduction link
https://fvrw0.csb.app/
Steps to reproduce
modal下使用video标签,播放后,关闭modal video or audio标签依然播放, 且重新打开modal 依然存在
What is expected?
modal关闭后销毁媒体标签
What is actually happening?
modal关闭后未销毁标签
| Environment |
Info |
| antd |
4.10.2 |
| React |
16.12.0 |
| System |
win10 |
| Browser |
firefox |
Contributor guide
- Research direction
- Investigate the destroyOnClose implementation in Modal, focusing on how child components are unmounted. Check if the issue is related to React's state management or ref usage, and consider if the media element's playback persists due to improper cleanup in componentWillUnmount or useEffect cleanup.
- Tech stack
- javascripttypescriptreact
- Domain
- frontend
- Issue type
- Bug
- Prerequisites
- Reactantd