From 3ec74a4f669c901ce952861cc87c9eed3aa32921 Mon Sep 17 00:00:00 2001 From: cobbspur Date: Mon, 31 Aug 2015 13:27:23 +0100 Subject: [PATCH] Prevent gh-spin-button from infinite spin closes #5768 - Always set showSpinnerTimeout back to null after 1 second. --- core/client/app/components/gh-spin-button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/client/app/components/gh-spin-button.js b/core/client/app/components/gh-spin-button.js index bd2678a388..4765313123 100644 --- a/core/client/app/components/gh-spin-button.js +++ b/core/client/app/components/gh-spin-button.js @@ -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);