From bd08ec23ff0b3ba6c8c4e26c7655d0770397aa90 Mon Sep 17 00:00:00 2001 From: zhouyun1 Date: Thu, 21 Mar 2024 19:09:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(ellipsis-tooltip):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9C=A8=20Table=20=E4=B8=AD=20resizable=20=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=E4=B8=8D=E6=98=BE=E7=A4=BA=E6=B0=94=E6=B3=A1=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#2770)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/lemon-buses-peel.md | 5 +++++ .changeset/shaggy-swans-doubt.md | 5 +++++ packages/ui/ellipsis-tooltip/src/EllipsisTooltip.tsx | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .changeset/lemon-buses-peel.md create mode 100644 .changeset/shaggy-swans-doubt.md diff --git a/.changeset/lemon-buses-peel.md b/.changeset/lemon-buses-peel.md new file mode 100644 index 000000000..ff75d5435 --- /dev/null +++ b/.changeset/lemon-buses-peel.md @@ -0,0 +1,5 @@ +--- +"@hi-ui/ellipsis-tooltip": patch +--- + +fix: 修复在 Table 中 resizable 模式下不显示气泡问题 diff --git a/.changeset/shaggy-swans-doubt.md b/.changeset/shaggy-swans-doubt.md new file mode 100644 index 000000000..558568888 --- /dev/null +++ b/.changeset/shaggy-swans-doubt.md @@ -0,0 +1,5 @@ +--- +"@hi-ui/hiui": patch +--- + +fix(ellipsis-tooltip): 修复在 Table 中 resizable 模式下不显示气泡问题 diff --git a/packages/ui/ellipsis-tooltip/src/EllipsisTooltip.tsx b/packages/ui/ellipsis-tooltip/src/EllipsisTooltip.tsx index 02dec4a55..070a9f50d 100644 --- a/packages/ui/ellipsis-tooltip/src/EllipsisTooltip.tsx +++ b/packages/ui/ellipsis-tooltip/src/EllipsisTooltip.tsx @@ -73,7 +73,7 @@ export const EllipsisTooltip: FC = ({ }, 300) }) - contentRef.current && observer.observe(contentRef.current) + contentRef.current?.parentNode && observer.observe(contentRef.current.parentNode as Element) return () => { observer.disconnect()