Comments (8)
This is "within the bounds of the trigger" but the tooltip is overlayed on top of these bounds. If the tooltip was repositioned instantly then you would never see this issue as you wouldn't be able to mouse over it. The issue happens when you quickly move the mouse over the tooltip before it has a chance to reposition.
I accept this may be hard to solve due to the inner workings of what's happening, but I'd question whether this is intended behaviour.
from react-popper-tooltip.
I believe, if you add pointer-events: none
to the .tooltip-container
it should resolve this issue.
from react-popper-tooltip.
oh got it, yes the positioning happens asynchronously, so your situation can occur. Right now I don't have the bandwidth to look into it. Feel free to raise a PR. Otherwise I'll give it a look this weekend.
from react-popper-tooltip.
Yep that works for me, thanks! Happy for this issue to be closed, unless you think it needs to be solved in the lib or added to the docs.
from react-popper-tooltip.
this is the intended behaviour, as it's tracking mouse position within the bounds of the trigger and not the tooltip or anything else
from react-popper-tooltip.
from react-popper-tooltip.
on second thoughts, if it's easy enough to add pointer-events: none
, but only when followCursor is true, then probably a good idea to do this in react-popper-tooltip so others don't get unexpected jankiness
from react-popper-tooltip.
@penx the library doesn't and shouldn't come with inherent CSS, just event handlers, CSS is kept to the user to add. Hence I'm closing the issue.
from react-popper-tooltip.
Related Issues (20)
- display: none on tooltip arrow HOT 2
- Version 4.X.X isn't supported in Shadow DOM. HOT 7
- Tooltip does not disappear when fast hovering over multiple setTriggerRef divs. HOT 10
- Keep tooltip open on mousedown/up and etc when trigger='click' and interactive=true HOT 1
- Unable to stop propogation in react-tooltip HOT 4
- Type check error with Typescript 4.4 exactOptionalPropertyTypes HOT 5
- `getTriggerRef` invoking with null HOT 1
- react-popper-tooltip has no exported member "usePopperTooltip" HOT 1
- Typescript error when using `getTooltipProps` in a div HOT 3
- don't close on losing hover HOT 5
- Handling focus outside
- Focus + interactive HOT 2
- Horizontal scrollbar appears, tooltip is cropped HOT 2
- React testing library hover event not triggered when trigger text if wrapper with additional element HOT 2
- Is not possible to pass a strategy HOT 4
- floating-ui version of the lib HOT 1
- Custom styles for "tooltip-container" HOT 1
- Can't disable preventOverflow modifier
- Placement is not working properly in tables HOT 6
- Support for newer versions of react
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-popper-tooltip.