Tooltip appears in the wrong position
See original GitHub issueIssue description
- components:
tooltip
(maybe also others that use popper) - reactstrap version
#5.0.0
- import method
not sure
- react version
#16.3.0
- bootstrap version
#4.0.0
What is happening?
The tooltip does not appear in the correct position. Some of the css properties does not appear to be set, namely the transform
and top
/left
properties seem to be missing.
What should be happening?
Tooltip should appear in the correct position
Steps to reproduce issue
- Create a new app with create-react-app
- add bootstrap and reactstrap
- Add a tooltip
- Tooltip does not appear in correct position
Code
I could for some reason not get it to show the error in the codepen when I tried earlier. Not sure if it’s a version mismatch or something of the sort.
But you can see the error here: https://reactstrap-error-tooltip.firebaseapp.com/
And the git repo is here: https://github.com/Maistho/reactstrap-tooltip-error
I’ve spent way too long trying to find exactly where the issue is, and I’m not sure if the issue is in reactstrap or in popper or in react-popper. I need some help 😢
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Bootstrap tooltip in wrong position on initial hover, then in ...
I think the problem is occurring because the div that the tooltip is attached to is absolutely positioned. Here is the div tag...
Read more >Tooltip displayed at wrong position when page is zoomed or ...
Tooltip displayed at wrong position when page is zoomed or scrolled, and reappears after switching back tab.
Read more >How to: Position a ToolTip - WPF .NET Framework
This example shows how to specify the position of a tooltip on the screen. ... HasDropShadow="false" Opened="whenToolTipOpens" ...
Read more >Bootstrap tooltip in wrong position on initial hover - CodePen
JS ; 1. //attempts at fixing the tooltip positioning after page load ; 2. $(function(){ ; 3. //suggestion from Eric G, see https://v4-alpha.getbootstrap.com/ ......
Read more >Why Chart.js's tooltip appears in wrong position when mouse ...
HTML : Why Chart.js's tooltip appears in wrong position when mouse hover?
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
fixed upstream. If anyone else runs into this, removing node_modules and doing a fresh install should grab a version of Popper.js (within the server range) which doesn’t have this issue
I’m also seeing a very odd issue here whereby the tooltip’s arrow is correctly positioned but its text element is not; see screenshots below. Bad news is I seem to be running up-to-date packages:
What I find odd is the y translation of the toottip’s wrapper element:
Anyone spotted this issue before?
Tooltip
Target: