Tippyjs: FlipBehaviour not working

Created on 16 Dec 2019  路  3Comments  路  Source: atomiks/tippyjs

Bug description

My actual settings:

flipBehaviour: ['bottom-end', 'left-start'],
placement: 'top-end',
flipOnUpdate: true

This doesn't work. The tooltip placement doesn't change when scrolling.
Removing the flipBehaviour, the tooltip switches from top-end to bottom-end.
I want it to flip to the left-start (or right-start) when the content is too large.
What can I do?
I am using the latest version (5.1.2) of tippy.js

Thank you in advance.

鈫笍 bug - Popper.js

All 3 comments

It's a Popper bug: https://github.com/popperjs/popper.js/issues/835 (includes workaround)

oh thanks a lot.

It works using:

flipBehaviour: ['top', 'left-start'],
placement: 'top-end',
flipOnUpdate: true

this is hard to understand... I thought the first parameter of the array should be bottom (where it actually flips) and then left (where i want it to flip).

Thanks again 馃憤

Edit: you can close this issue if you want.

Yeah it's a bug that's fixed in Popper v2 but can't do anything for now :-(

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gclark18 picture gclark18  路  4Comments

makarov906 picture makarov906  路  4Comments

jemhuntr picture jemhuntr  路  4Comments

divmgl picture divmgl  路  3Comments

Christian24 picture Christian24  路  3Comments