ivanvanderbyl / ivanvanderbyl/ui-progress-bar
Reversing from 100% issue and solution.
- Dominant language
- JavaScript
- Stars
- 342
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
Going to 100% (where the "Done" text appears), and then reversing causes an issue where the "Done" text remains. Inserting this in between lines 54 and 55 will fix it (within the 'else'):
``` javascript
if(valueEl.length == 0)
{
labelEl.html("Complete 7%")
valueEl = $('.value', labelEl);
}
```
Though there still stands the issue if they user doesn't want to use the word "Complete".
Sorry I'm not a git guru to actually upload a patch. :P
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the JavaScript progress-bar logic around lines 54-55 and reproduce reversing after reaching 100%, when the Done text remains. Done means the completed label is removed or updated correctly on reversal, while the wording remains configurable as noted in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100