mwasiluk / angular-surveys

Angular survey / form builder inspired by Google Forms
http://mwasiluk.github.io/angular-surveys
Apache License 2.0
240 stars 135 forks source link

[bootstrap version] Range is not disabled on viewer- readonly #50

Open ghost opened 6 years ago

ghost commented 6 years ago

This happened to bootstrap version only. The range slider is not locked. I will try to fix it by tomorrow when I have time

ghost commented 6 years ago

The fix is quite easy . Open mw-form-question.html , add ng-disabled="ctrl.readOnly" . like this :

<div ng-switch-when="select">
            <select ng-options="answer.id as ctrl.print(answer.value) for answer in ::ctrl.question.offeredAnswers"
                    ng-model="ctrl.questionResponse.selectedAnswer"
                    class="form-control"
                    ng-disabled="ctrl.readOnly"
                    ng-required="ctrl.question.required">

            </select>
        </div>