ant-design/ant-design
View on GitHubPopover remains visible when component tree is suspended
Open
#38,158 opened on Oct 21, 2022
Inactivehelp wanted
Description
Reproduction link
Steps to reproduce
- Open Popover by clicking on the
Open Popover button - Trigger suspense by clicking on the popover content button
Hide and load data - See popover remaining visible while the component tree is suspended.
What is expected?
The popover to be hidden.
What is actually happening?
The popover remains visible.
| Environment | Info |
|---|---|
| antd | 4.23.6 |
| React | 17 |
| System | Linux |
| Browser | Google Chrome |
React.Suspense provide a lifecycle so components can handle the display:none removal. This can be used to handle this: https://github.com/facebook/react/issues/14536