ant-design/ant-design

Modal 下 destroyOnClose 属性 失效

Open

#28,847 opened on Jan 13, 2021

View on GitHub
 (5 comments) (2 reactions) (0 assignees)TypeScript (98,031 stars) (54,612 forks)batch import
Inactivehelp wanted🐛 Bug

Description

  • I have searched the issues of this repository and believe that this is not a duplicate.

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