Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit a3c27c3

Browse files
authored
docs: Suggest positionFixed in place of portals
1 parent e17c2e5 commit a3c27c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ in the same DOM context.
151151
This means that you can use [`ReactDOM.createPortal`](https://reactjs.org/docs/portals.html)
152152
(or any pre React 16 alternative) to move the popper component somewhere else in the DOM.
153153
154+
This can be useful if you want to position a tooltip inside an `overflow: hidden` container
155+
that you want to make overflow. Please note that you can also try the `positionFixed` strategy
156+
to obtain a similar effect with less hassle.
157+
154158
```jsx
155159
import { Manager, Reference, Popper } from 'react-popper';
156160

0 commit comments

Comments
 (0)