Skip to content
Bug reportDec 5, 2026· 0:28· 10 views

Ant Design 6.6.6: tooltip with unique:true stays open after trigger unmounts

0:28 total

Comments · 0

Be the first to comment.

Bug reportby SceneRecap AI

mediumantd Tooltip unique mode (ConfigProvider tooltip.unique). The shared tooltip does not close or reset its open state when the active trigger unmounts.
os: macOSdpr: 1antd: 6.6.6 (unpkg.com)locale: en-USbrowser: Chromium 151.0.7922.34timezone: Europe/Berlinviewport: 1280x720issue_ref: antd #59603

Repro steps

  1. 1.Open the repro page. It shows a bug case wrapped in <ConfigProvider tooltip={{ unique: true }}> and a control case using the default <ConfigProvider>.
  2. 2.Hover the 'Click to Unmount' button in the bug case so the 'Hello, Ant Design!' tooltip opens.
  3. 3.Click 'Click to Unmount bug case' while the tooltip is open. This removes the trigger button.
  4. 4.Observe that the tooltip remains visible after the button is gone.
  5. 5.For comparison, hover the control case 'Click to Unmount' button and click 'Click to Unmount control case'.

Expected

When the tooltip trigger element is removed from the DOM, the tooltip closes and disappears. This matches the control case without tooltip.unique.

Actual

In the bug case the 'Hello, Ant Design!' tooltip stays on screen after its trigger button is unmounted. It persists from 11.0s to the end of the recording. By 20.9s it degrades into a dark, empty-looking box with page text showing through, and it never closes.

Evidence

visualInitial state: both cases show 'Click to Unmount' and 'Restore' buttons. No tooltips are visible.
visualHovering the bug case button opens the 'Hello, Ant Design!' tooltip above it.
visualClick event recorded on 'Click to Unmount bug case' while the tooltip is open.
visualThe bug case button is gone and only 'Restore' remains. The 'Hello, Ant Design!' tooltip is still displayed.
visualThe bug case tooltip is still open with no trigger present.
visualControl: hovering the control case button opens its own tooltip, while the stale bug case tooltip is still visible.
visualControl works correctly: after clicking 'Click to Unmount control case', the control button and its tooltip both disappear.
visualThe bug case tooltip remains as a dark, empty-looking rectangle with garbled text showing through. It is never dismissed.
Issue markdown (copy-paste ready)
## Summary
With `<ConfigProvider tooltip={{ unique: true }}>`, a Tooltip stays open after its trigger element is removed from the DOM. The control case with the default ConfigProvider closes correctly. Ref: antd #59603.

## Environment
- antd 6.6.6 (unpkg.com)
- Chromium 151.0.7922.34, macOS
- Viewport 1280x720, DPR 1

## Steps to reproduce
1. Open the repro page with a bug case (`tooltip={{ unique: true }}`) and a control case (default). (1.0s)
2. Hover the bug case 'Click to Unmount' button. The 'Hello, Ant Design!' tooltip opens. (7.0s)
3. Click 'Click to Unmount bug case'. This removes the trigger button. (8.8s)
4. Observe that the tooltip is still visible. (11.0s)
5. Control: hover and click 'Click to Unmount control case'. (20.9s)

## Expected
The tooltip closes when its trigger unmounts, the same as in the control case.

## Actual
The bug case tooltip stays open from 11.0s to the end of the recording. By 20.9s and 23.0s it shows as a dark, empty-looking box with garbled text showing through. It never closes.

## Control
The control case without `tooltip.unique` works correctly. At 20.9s its button and tooltip both disappear on unmount.

## Evidence
- 7.0s: the bug case tooltip opens on hover.
- 8.8s: click on 'Click to Unmount bug case'.
- 11.0s to 17.0s: the trigger is gone but the tooltip remains.
- 19.0s: the control tooltip opens while the stale bug tooltip is still shown.
- 20.9s: the control tooltip closes on unmount. The bug tooltip turns into an empty dark box.
- 23.0s: the bug tooltip box is still present.

## Suggested area
Tooltip unique mode (ConfigProvider `tooltip.unique`). The shared popup is likely not notified or closed when the active trigger unmounts.

*Recorded with SceneRecap.*

This report was written by SceneRecap from a screen recording. Try SceneRecap free

Turn a screen recording into a bug report like this one.

Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.

Try SceneRecap free →
Ant Design 6.6.6: tooltip with unique:true stays open after trigger unmounts · SceneRecap