kimmobrunfeldt / kimmobrunfeldt/progressbar.js

progressbar not working in classs

Open
#299 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.9k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

When i create one progressbar like this

```
this.progressbar = new ProgressBar.Circle(`#${this.id}_progressbar`, {
strokeWidth: 9,
trailWidth: 9,
trailColor: '#363348',
easing: 'easeInOut',
duration: 1000,
color: this.color,
});

```

everything works until I create another element in the class, if I create for example 3 progressbars then only the last one will work
any ideas?

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue using the provided ProgressBar.Circle snippet inside a class, creating multiple progress bars with distinct element IDs. Trace the library entry point and instance creation behavior to determine why only the last bar works, then verify that all created bars operate independently.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.