angular-progress-button icon indicating copy to clipboard operation
angular-progress-button copied to clipboard

Progress bar is not showing up after the first click.

Open vivekgmathew opened this issue 9 years ago • 5 comments

Need to refresh the page to get it work again.

vivekgmathew avatar Aug 05 '15 18:08 vivekgmathew

Do you mean the progress bar doesn’t show up at all until you refresh the page or do you want the progress bar to show up again when clicking the button a second time?

sonicdoe avatar Aug 05 '15 19:08 sonicdoe

Progress bar shows up first time (first click). But if you click again bar does't shows up. Yes I want the progress bar to show up for subsequent clicks as well(Without page refresh).

Isssue 2 : The button text toggles way before progress bar reaches the complete state. I fixed it locally and using it. Would you mind if i check in that fix.

vivekgmathew avatar Aug 06 '15 01:08 vivekgmathew

Okay, I think I understand your use case. While it’s possible to reset the button to its initial state using value = 0, it lacks any kind of animation and may not be very intuitive. I’ll keep this issue open but I don’t know when I’ll get around to it.

Regarding your second issue, feel free to open a pull request.

sonicdoe avatar Aug 06 '15 05:08 sonicdoe

If you want to increase the duration the bar is visible upon completion, you just need to increase this parameter. See this JS Bin, for example.

sonicdoe avatar Aug 06 '15 16:08 sonicdoe

I could fix the issue by resetting the opacity value back to 1 in the ng-click handler. The problem was due to the opacity being set to 0. Thanks .

vivekgmathew avatar Aug 06 '15 16:08 vivekgmathew