Skip to content

Commit

Permalink
Prevent gh-spin-button from infinite spin
Browse files Browse the repository at this point in the history
closes #5768

- Always set showSpinnerTimeout back to null after 1 second.
  • Loading branch information
cobbspur committed Aug 31, 2015
1 parent 720c421 commit 3ec74a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/client/app/components/gh-spin-button.js
Expand Up @@ -31,8 +31,8 @@ export default Ember.Component.extend({
this.set('showSpinnerTimeout', Ember.run.later(this, function () {
if (!this.get('submitting')) {
this.set('showSpinner', false);
this.set('showSpinnerTimeout', null);
}
this.set('showSpinnerTimeout', null);
}, 1000));
} else if (!submitting && timeout === null) {
this.set('showSpinner', false);
Expand Down

0 comments on commit 3ec74a4

Please sign in to comment.