Skip to content

Commit

Permalink
Update js/ConfidenceSliderModel.js
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Foster <[email protected]>
  • Loading branch information
joe-allen-89 and oliverfoster authored Oct 27, 2023
1 parent 907aa42 commit 7674f32
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions js/ConfidenceSliderModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7674f32

Please sign in to comment.