From 30eded0fb6926ea11cc409aa7c66f130360bd337 Mon Sep 17 00:00:00 2001 From: Sajjad Hashemian Date: Tue, 24 Jul 2018 19:25:09 +0430 Subject: [PATCH] configure spinner only once --- framework/core/js/src/common/components/LoadingIndicator.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/core/js/src/common/components/LoadingIndicator.js b/framework/core/js/src/common/components/LoadingIndicator.js index df0ae9ade..fc036baae 100644 --- a/framework/core/js/src/common/components/LoadingIndicator.js +++ b/framework/core/js/src/common/components/LoadingIndicator.js @@ -19,7 +19,9 @@ export default class LoadingIndicator extends Component { return
{m.trust(' ')}
; } - config() { + config(isInitialized) { + if (isInitialized) return; + const options = { zIndex: 'auto', color: this.$().css('color') }; switch (this.props.size) {