Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using .fromElement breaks other gauges #256

Open
cewlbird opened this issue Apr 7, 2022 · 0 comments
Open

Using .fromElement breaks other gauges #256

cewlbird opened this issue Apr 7, 2022 · 0 comments

Comments

@cewlbird
Copy link

cewlbird commented Apr 7, 2022

Hi,

first of all thank you for this great lib!

I noticed some strange effects, somehow when using BaseGauge.fromElement within a modal on a specific gauge element (e.g. compass), all other gauges (different radial gauges, e.g. with a pointer, with a progress bar) on my dashboard get a mixed styling.

So if there is a compass in my modal, all other radial gauges get changed as well and now have a mixed styling like a radial gauge with a progress bar AND the stylings of the compass etc.

The ids are unique so I cant understand why this is happening as I am not even changing the data-attributes of the gauges on my dashboard. As soon as the modal opens, fromElement gets triggered on a gauge inside this modal and in this exact moment all other gauges get strange designs.

Did anyone had this kind of effects too?

See before and after screenshots to see this effect.

Best Regards

before

after

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant