From bf0c0b1c1d7bc4a7928b6ef19f21227de30ac876 Mon Sep 17 00:00:00 2001 From: Rick Feuerabend Date: Mon, 25 Apr 2016 15:36:02 +0200 Subject: [PATCH] allow to override indicator for inactive elements --- index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index bf94c6c..abae524 100644 --- a/index.js +++ b/index.js @@ -104,10 +104,11 @@ class MultipleChoice extends BaseComponent { } _renderIndicator(option) { + if(typeof this.props.renderIndicator === 'function') { + return this.props.renderIndicator(option); + } + if (this._isSelected(option)) { - if(typeof this.props.renderIndicator === 'function') { - return this.props.renderIndicator(option); - } return (