From 682b9319319cf34a14a454d30e2f8bdc1696cc99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Tue, 2 Jun 2026 09:21:47 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E6=97=B6tooltip=E6=98=BE=E7=A4=BA=E5=90=8E?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E5=87=BA=E7=8E=B0=E9=94=99=E4=BD=8D=E7=8E=B0?= =?UTF-8?q?=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/IconSelect.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/common/IconSelect.tsx b/src/components/common/IconSelect.tsx index e2318f62..e4a1c676 100644 --- a/src/components/common/IconSelect.tsx +++ b/src/components/common/IconSelect.tsx @@ -71,6 +71,8 @@ const iconOptions: Array<[string, IconComponent]> = [ ['ai', RobotOutlined] ]; +const getIconTooltipContainer = (triggerNode: HTMLElement) => triggerNode.parentElement ?? document.body; + export interface IconSelectProps { value?: string; onChange?: (value: string) => void; @@ -125,7 +127,13 @@ export default function IconSelect({ value, onChange, width = '100%' }: IconSele