atomiks / tippyjs

Tooltip, popover, dropdown, and menu library
https://atomiks.github.io/tippyjs/
MIT License
11.91k stars 518 forks source link

fix(inlinePositioning): infinite loop #994

Closed atomiks closed 2 years ago

atomiks commented 2 years ago

@kenticomartinh

This prevents .setProps() from being called if it encountered that placement already. It still resets the array so that flipping can continue to work again — it just breaks the loop. Tried it on your CodePen and the issue is gone.

Fixes #977