Skip to content

Commit 7e62bbb

Browse files
fix: allow changing place prop dynamically
1 parent 7f11169 commit 7e62bbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/TooltipController/TooltipController.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ const TooltipController = ({
125125
setTooltipHtml(html)
126126
}, [html])
127127

128+
useEffect(() => {
129+
setTooltipPlace(place)
130+
}, [place])
131+
128132
useEffect(() => {
129133
const elementRefs = new Set(anchorRefs)
130134

0 commit comments

Comments
 (0)