deprecate / metal-tooltip Goto Github PK
View Code? Open in Web Editor NEWMetal's tooltip component
License: Other
Metal's tooltip component
License: Other
After mouseoff of the tooltip, this error is thrown.
bundle.nocsf.js?browserId=other&minifierType=js&languageId=en_US&b=7010&t=249:1059 Uncaught TypeError: Cannot read property 'removeAttribute' of null
at Tooltip.syncAlignElement (bundle.nocsf.js?browserId=other&minifierType=js&languageId=en_US&b=7010&t=249:1059)
at Tooltip.fireStateKeyChange_ (bundle.nocsf.js?browserId=other&minifierType=js&languageId=en_US&b=7010&t=249:251)
at Tooltip.syncStateFromChanges_ (bundle.nocsf.js?browserId=other&minifierType=js&languageId=en_US&b=7010&t=249:254)
at Tooltip.handleStateChanged_ (bundle.nocsf.js?browserId=other&minifierType=js&languageId=en_US&b=7010&t=249:251)
at Tooltip.emit (bundle.nocsf.js?browserId=other&minifierType=js&languageId=en_US&b=7010&t=249:185)
at State.emitBatchEvent_ (bundle.nocsf.js?browserId=other&minifierType=js&languageId=en_US&b=7010&t=249:284)
at run (bundle.nocsf.js?browserId=other&minifierType=js&languageId=en_US&b=7010&t=249:121)
at runIfPresent (bundle.nocsf.js?browserId=other&minifierType=js&languageId=en_US&b=7010&t=249:122)
at onGlobalMessage (bundle.nocsf.js?browserId=other&minifierType=js&languageId=en_US&b=7010&t=249:124)
We want to get the content from the title
html attribute instead of from data-title
. Whenever we do this for some trigger element, we need to remember to remove the title
attribute before the browser tries showing its default tooltip, otherwise we'll show that and our tooltip. When the component is disposed the original title
attributes should be given back to affected triggers though.
This work has already been started on #5, but it's been a while since Thiago has been able to work on it, so I'm closing that pull request and opening this issue to allow anyone than wishes to grab and work on it.
There are events delegated to the DOM document listening these events but they doesn't bubble to parent elements. See syncTriggerEvents method from Tooltip class.
Steps to reproduce:
[0, 0]
.Expected result:
Tooltip shows without delay and correctly aligned.
Actual result:
Tooltip shows without delay but incorrectly aligned.
You can see it happening in the gif below:
This doesn't happen if a delay is set.
Once more projects are using Metal Components it will be nice provide a documentation. For now, developers have to read the source code to see how to use components.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.