Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Oct 2, 2017 · 1 comment
Open

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

ghost opened this issue Oct 2, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 2, 2017

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
Copy link
Author

ghost commented Oct 4, 2017

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> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants