Git Product home page Git Product logo

metal-tooltip's People

Contributors

eduardolundgren avatar mairatma avatar pragmaticivan avatar vbence86 avatar zenorocha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

metal-tooltip's Issues

After hover, and mouseoff, "Cannot read property 'removeAttribute' of null

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)

Get the title content from the node's title instead of node's data-title

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 titleattributes 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.

Tooltip is not aligned correctly when delay is removed

Steps to reproduce:

  1. Change the tooltip demo to set delay to [0, 0].
  2. Open the demo and hover over the buttons.

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:
tooltip

This doesn't happen if a delay is set.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.