Bug reportSep 2, 2026· 0:24· 13 views
Ant Design X Think: content stays visible after collapse when destroyOnHidden=false
0:24 total
Comments · 0
Be the first to comment.
Bug report— by SceneRecap AI
mediumcomponents/think
os: macOSbrowser: Chromium 151.0.7922.34viewport: 1280x720
Repro steps
- 1.Navigate to the Ant Design X 'Think' documentation page (/components/think) and locate the 'Destroy On Hidden' example.
- 2.Toggle the 'destroyOnHidden' switch to disabled ('keep').
- 3.Click the 'Collapse' button to collapse the Think component.
Expected
When collapsed with destroyOnHidden set to false ('keep'), the component content should be hidden from view (e.g., via CSS display: none or height transition) while remaining preserved in the DOM.
Actual
The header arrow points right (collapsed) and the button toggles to 'Expand', but the thinking content remains fully visible below the header.
Evidence
visualControl case works correctly: with destroyOnHidden active, clicking 'Collapse' hides the content at 7.0s.
visualAfter toggling destroyOnHidden to false ('keep') and clicking 'Collapse', the content text remains rendered and visible beneath 'Deep Thinking >' at 17.0s.
Issue markdown (copy-paste ready)
### Description When `destroyOnHidden` is disabled (set to `false` / `keep`) on the `Think` component, triggering collapse changes the component's state and header arrow to collapsed, but does not visually hide the body content. ### Steps to Reproduce 1. Go to the **Think** component documentation (`/components/think`) and locate the **Destroy On Hidden** example. 2. Click the `destroyOnHidden` switch to turn it off (`keep`). 3. Click the **Collapse** button. ### Expected Result The component body content should become hidden while remaining in the DOM. ### Actual Result The button label switches to **Expand** and the header icon changes to collapsed (`>`), but the content (`This content will be removed from DOM...`) remains fully visible on screen. *Recorded with SceneRecap.*
Your recordings could explain themselves too.
Free plan · silent recordings welcome · bug reports included.
Try SceneRecap free →