Skip to content

Commit 2a0389f

Browse files
docs: remove warning regarding closeOnScroll
1 parent d59950a commit 2a0389f

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

docs/docs/troubleshooting.mdx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,13 @@ This means the tooltip component doesn't have to be a direct child of the scroll
8585

8686
:::
8787

88-
### Use `closeOnEsc` prop
88+
### Use `closeOnScroll` prop
8989

9090
```tsx
91-
<Tooltip closeOnEsc={true} />
91+
<Tooltip closeOnScroll={true} />
9292
```
9393

94-
When `closeOnEsc` is set, scrolling will immediately close the tooltip (`closeOnResize` also exists for closing when resizing the window).
95-
96-
:::caution
97-
98-
For this to work properly, the scrolling element must either be the root `html` tag, the tooltip parent element, or the anchor parent element.
99-
100-
:::
94+
When `closeOnScroll` is set, scrolling will immediately close the tooltip (`closeOnResize` also exists for closing when resizing the window).
10195

10296
## Bad performance
10397

0 commit comments

Comments
 (0)