Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltips show in wrong position when hovered from above on Safari #37068

Closed
3 tasks done
nwalters512 opened this issue Sep 1, 2022 · 10 comments · Fixed by #37235
Closed
3 tasks done

Tooltips show in wrong position when hovered from above on Safari #37068

nwalters512 opened this issue Sep 1, 2022 · 10 comments · Fixed by #37235

Comments

@nwalters512
Copy link
Contributor

Prerequisites

Describe the issue

I'm adding a tooltip to an icon. On macOS Safari, when the icon is hovered by starting the mouse below the icon and moving up towards it, it shows correctly:

Screen Shot 2022-09-01 at 15 03 16

However, when the mouse starts above the icon and moved down toward it, it shows in the wrong place:

Screen Shot 2022-09-01 at 14 58 48

Here's a video illustrating the issue:

Screen.Recording.2022-09-01.at.15.05.18.mov

I cannot reproduce this bug in Chrome or Firefox.

Reduced test cases

Here's a JSFiddle illustrating the problem: https://jsfiddle.net/nwalters512/Lns1b9kj/4/.

What operating system(s) are you seeing the problem on?

macOS

What browser(s) are you seeing the problem on?

Safari

What version of Bootstrap are you using?

v5.2.0

@nalakapws
Copy link
Contributor

Tooltips and popovers in Bootstrap are a nightmare.

@easypronunciation
Copy link

A related bug in Chrome on MacOS.
If I carefully hover to the tooltip from above, it doesn't show up at all on the first hover.
By "carefully" I mean the cursor should be exactly above the tooltip and the movement should start from considerable distance.
Bootstrap 5.2.1

@GeoSot
Copy link
Member

GeoSot commented Sep 13, 2022

/cc @atomiks can you help on this please? I cannot replicate it with linux or win11

@florianlacreuse
Copy link
Contributor

I can reproduce the issue randomly with Fedora + Chrome.

@julien-deramond
Copy link
Member

Reproduced on macOS with Safari, Firefox and Chrome. However it is less frequent with Firefox.
To reproduce, I simply move very fast the cursor outside and on the warning icon.

Information that might be useful.

When the tooltip is well displayed:
Screenshot 2022-10-01 at 00 19 37

When the tooltip is not well displayed, there's no style.
Screenshot 2022-10-01 at 00 19 28

@GeoSot
Copy link
Member

GeoSot commented Oct 1, 2022

@florianlacreuse
Copy link
Contributor

On my side, I can no longer reproduce the issue on the preview page.

@julien-deramond
Copy link
Member

@GeoSot Can no longer reproduce the issue by replacing bootstrap.bundle.min.js in https://jsfiddle.net/nwalters512/Lns1b9kj/4/ by your version. Patch seems to work well :)

@GeoSot
Copy link
Member

GeoSot commented Oct 3, 2022

Wonderful news guys and many thanks for your help 😄
#37235 will close this issue

@TechOverflow
Copy link

I am still experiencing this, BS 5.2.2, Safari latest. Thought I was going crazy or had a mistake in my elements.
I believe the problem only happens when placement is "top" (or default) and when the mouse move from the top.
In my case coming from the body of the card to the icon in the footer.
https://jsfiddle.net/pru7gv1y/

test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
8 participants