Popper uses some modifiers that are not customizable, Instead, I use a new library whose name is Floating UI (the evolution of Popper 2).
Floating UI extended modifiers to something new as middleware. One of them whose name is shift can be or not be in the middleware list to handle shifting popper elements in the exiting from viewport situation.
You can find further information at Floating UI doc .
shift() moves the floating element along the specified axes in order to keep it in view.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.