Popover/tooltip fallbackPlacement ignores values other than 'flip'
See original GitHub issueThe fallbackPlacement
options for popover
s seems to be completely ignored for other values than 'flip'
. The popover documentation refers to Popper.js documentation for valid values: https://getbootstrap.com/docs/4.0/components/popovers/#options
https://popper.js.org/popper-documentation.html#modifiers..flip.behavior
but neither of 'clockwise'
, 'counterclockwise'
or an array of placements are supported.
They however are recognized as valid values because the popover stays at the initial placement. When giving the option some clearly invalid value it is sent at top-left corner of the viewport.
Tooltips are also concerned.
Here is a fiddle demonstrating the issue: https://jsfiddle.net/pr_shadoko/1t4eLjLh/
Tested on : Windows 10 64bit Chrome 63.0.3239.84 / Firefox 57.0 / Opera 49.0 jQuery 3.2.1 BS 4.0.0-beta.3 popper 1.12.9
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Did you made an example with just Popper.js ? To be sure it’s related to Bootstrap ?
Sorry guys, it stumbled on this issue working on a side project and I have not had much time to work on it lately so my attempt to make a Popper.js example did not go very far…
I will have a look at the popper issue you pointed out @NicolasPerego
Anyway, if no valid fix is found, I believe we should at least update the doc before closing the issue as the feature is clearly not functioning…