Skip to content

Commit

Permalink
fix(ellipsis-tooltip): 修复在 Table 中 resizable 模式下不显示气泡问题 (#2770)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyprepare committed Mar 21, 2024
1 parent b3cb0de commit bd08ec2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lemon-buses-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/ellipsis-tooltip": patch
---

fix: 修复在 Table 中 resizable 模式下不显示气泡问题
5 changes: 5 additions & 0 deletions .changeset/shaggy-swans-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/hiui": patch
---

fix(ellipsis-tooltip): 修复在 Table 中 resizable 模式下不显示气泡问题
2 changes: 1 addition & 1 deletion packages/ui/ellipsis-tooltip/src/EllipsisTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const EllipsisTooltip: FC<EllipsisTooltipProps> = ({
}, 300)
})

contentRef.current && observer.observe(contentRef.current)
contentRef.current?.parentNode && observer.observe(contentRef.current.parentNode as Element)

return () => {
observer.disconnect()
Expand Down

0 comments on commit bd08ec2

Please sign in to comment.