Comments (3)
@maxfierke Our use case is related to rendering the tooltip inside a custom popperContainer
. When used in tables where each cell has a tooltip and the table can scroll horizontally inside its container (which is why the container must have overflow: hidden
making @popperContainer="body"
required, otherwise some of the tooltips would've been cropped), after hovering a sizable number of cells, the horizontal scroll behavior gets slow, because the all tooltips' inline styles (translate
) are updated to position each tooltip correctly - unnecessarily, because the tooltip itself is invisible, but it does result in DOM updates nonetheless. So the default behavior is fine for most cases, yet it would be great if there was an option to actually remove the element after the fade out transition is complete.
from ember-tooltips.
@evanb2 this is how the hide behavior works in tooltip.js
, the library we use underneath.
In theory, removing the element from the DOM could be done instead, but would incur the cost of removing popper.js/tooltip.js teardown and then removing the DOM node, and then the setup cost again were it to be triggered. If tooltips are triggered by hover (as they often are) this is repeating a whole bunch of work any time someone moves their mouse over a triggering element. In the general case, keeping the DOM node around is better. FWIW, the DOM node is lazily rendered initially by default.
There's no exposed way right now to implement a more aggressive DOM removal, however. You are, however, able to use the isShown
property within the component (via the component's block argument) to conditionally render content, but your mileage may vary with regards to how the tooltip reacts to those content changes (might be fine)
from ember-tooltips.
Similar issues here. Because the tooltip stays in the DOM without display:none, having issues where a table resizes after one of the td's shownOn hover tooltips comes in.
from ember-tooltips.
Related Issues (20)
- Having popover style the same as tooltip HOT 2
- Disable all ember-tooltips styles HOT 1
- Positioning the pointer/arrow so it's not always centered in 3.x HOT 10
- Ember Tooltip v3.4.0 shows a tooltip outside the browser window HOT 10
- Update documentation and tests to use Octane features
- Issue with tooltip positioning HOT 4
- Upgrade to popper@2? HOT 8
- Deprecation warnings with Ember 3.20 HOT 5
- Wrong Sentence at line 335 of README file
- IE 11 - Not working due to js errors HOT 6
- Hiding popover on target click or inside click HOT 1
- onHide triggers even if tooltip wasn't shown HOT 1
- Deprecation warning: Using `run.bind` has been deprecated HOT 2
- Must use import to load ES Module eslint-scope/lib/definition.js HOT 2
- Increased memory usage on 3.5.1
- Remove use of ember global Ember.testing
- Security Vulnerability: glob-parent@<5.1.2
- Popover showing behind elements below HOT 1
- Add Glint TypeScript types
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 ember-tooltips.