loadingio / loading-bar

Flexible, light weighted and super fast Progress Bar Library
MIT License
402 stars 75 forks source link

data-value attribute is not being tracked #10

Open ceremcem opened 7 years ago

ceremcem commented 7 years ago

Changing data-value attribute dynamically by the template engine (RactiveJS, in my case) does not make progress bar to update its value.

Tip: Re-rendering the progress bar solves the issue.

Kansuler commented 5 years ago

You are supposed to use the set method of the loading-bar object, from what i understand. You can react on prop change and trigger the set method instead.

ceremcem commented 5 years ago

Correct, that's what I do at the moment. I kept the issue open and left the decision to the owner to clarify if current one is the supposed behavior or if the loading-bar object should observe its data-value attribute.

abhipatel7 commented 2 years ago

@ceremcem Can you share your implementation? I'm having the same problem and am not able to figure out how I should fix it.