From 7674f32edefc3b0a976159b9a417196d05099de2 Mon Sep 17 00:00:00 2001 From: joe-allen-89 <85872286+joe-allen-89@users.noreply.github.com> Date: Fri, 27 Oct 2023 14:04:46 +0100 Subject: [PATCH] Update js/ConfidenceSliderModel.js Co-authored-by: Oliver Foster --- js/ConfidenceSliderModel.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/js/ConfidenceSliderModel.js b/js/ConfidenceSliderModel.js index 9aad263..0fb2d76 100644 --- a/js/ConfidenceSliderModel.js +++ b/js/ConfidenceSliderModel.js @@ -148,12 +148,7 @@ export default class ConfidenceSliderModel extends SliderModel { _scaleEnd: this.linkedModel.get('_scaleEnd') }); this._listenToLinkedModel(); - if (!this.linkedModel.get('_isSubmitted')) { - this.set('_isEnabled', false); - this.set('body', this.get('disabledBody')); - } else { - this.set('_linkedModelSelectedIndex', this.linkedModel.get('_selectedItem').index); - } + this.updateFromLinkedModel(); if (this.get('_attempts') < 0) this.linkedModel.set('_attempts', 1); }