GithubHelp home page GithubHelp logo

Comments (9)

mathieucivel avatar mathieucivel commented on May 17, 2024 1

Well it works for me now :) Thank you.

from tippyjs.

atomiks avatar atomiks commented on May 17, 2024

That error occurs when it tries to stringify itself: http://stackoverflow.com/questions/11616630/json-stringify-avoid-typeerror-converting-circular-structure-to-json

So I guess .test is the same element as #test?

Or.. maybe something else. I think I'll use a different method and do deep cloning to avoid problems

from tippyjs.

mathieucivel avatar mathieucivel commented on May 17, 2024

Well no, I added '.test' for the example but it was in fact a selector in a variable. Sorry I can't easily produce something for you to see the issue. Feel free to close this one :)

from tippyjs.

atomiks avatar atomiks commented on May 17, 2024

For a second I was wondering how stringify handled HTML Elements being passed through, but it seems to work without errors here: https://codepen.io/anon/pen/aWmEZL

from tippyjs.

mathieucivel avatar mathieucivel commented on May 17, 2024

Yes I started to test this way, that's why I have doubts with my webpack config. I just can't find why. I tried to export/expose Tippy as a global, but with the same result (a string with the selector works, but not an element).

from tippyjs.

atomiks avatar atomiks commented on May 17, 2024

Can you paste the full code here?

...And I just noticed from that pen that if a tooltip is flipped, clicking on it causes glitchy behavior instead of a smooth hide... more fixes to come

Edit: ^ was something I removed recently because I thought it was pointless, turns out it wasn't -_-

from tippyjs.

atomiks avatar atomiks commented on May 17, 2024

I've switched to using Object.assign to clone the individual settings now since a deep copy isn't needed (popperOptions can't be defined in the HTML), maybe it will work now.

Check v0.8.2: https://github.com/atomiks/tippyjs/releases/tag/v0.8.2

from tippyjs.

mathieucivel avatar mathieucivel commented on May 17, 2024

Sorry I can't paste the code, so I made a new webpack projet. I can't reproduce the bug tough.. I'll try your last version thanks.

from tippyjs.

atomiks avatar atomiks commented on May 17, 2024

Any luck?

from tippyjs.

Related Issues (20)

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.