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

Number question type displays extra input field #45

Open
mindscratch opened this issue Jul 14, 2017 · 0 comments
Open

Number question type displays extra input field #45

mindscratch opened this issue Jul 14, 2017 · 0 comments

Comments

@mindscratch
Copy link

In either demo (bootstrap or material), if you had a question and set the type to "Number", an extra input field is display beneath the "min" and "max" fields.

The template being used explicitly creates this extra control so perhaps it just needs to be removed? Here's the relevant snippet from the bootstrap template:

<div ng-switch-when="number" class="form-inline">
                        <div class="range-config form-inline">
                            <span translate="mwForm.question.number.min">Min</span>: <input class="form-control" type="number" ng-model="ctrl.question.min" max="{{ctrl.question.max}}" ng-readonly="ctrl.readOnly"/> <span translate="mwForm.question.number.max">Max</span>: <input class="form-control" type="number" min="{{ctrl.question.min}}" ng-model="ctrl.question.max" ng-readonly="ctrl.readOnly"/>
                        </div>
                        <br/>
                        <input class="form-control" type="number" disabled >
</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

1 participant