Stop being the product.
Become the owner.
or
sign uplog in

React - How to create a dropdown and other similar…

React - How to create a dropdown and other similar components, which escape outside Its parent container?

Hello,

How can I implement a component overlay, like a dropdown or popover, so it escapes its parent container instead of being clipped, hidden, or expanding the parent layout?

I managed to do it with getBoundingClientRect(), store the position in state and apply it as fixed positinioning. Even though it seems to work, wonder if there is a better solution. Thank you.
#dev #programming #technology
earnings
1,000 mlx total
$0  total
engagement
1 views
0 reactions

0 comments