Instructor: add rank question: prevent input field from shrinking when enabled #8355
Labels
a-UIX
User Interface, User eXperience, responsiveness
help wanted
Moderate difficulty, small localized change; suitable for novice contributors
p.Low
Very little impact; unlikely to do in the near future
Milestone
Environment
master
branch at commit18aefe8
Browser: Chrome on macOS High Sierra
Steps to reproduce
Add New Question
, choose eitherRank 'options' question
orRank 'recipients' question
, tick on eitherMinimum number of options a respondent must rank
orMaximum number of options a respondent can rank
, the corresponding input field will shrinkExpected behaviour
The input fields should not shrink when enabled
Actual behaviour
The input fields shrink when enabled
Possible cause
When the input field is enabled, the
max
attribute is added to it. The field now has bothmin
andmax
attributes and the size of the field is then changed to fit the amount of digits specified bymax
(see angular/material#7349).Proposed solution
Set the
step
attribute of input field toany
so that the input field does not try to fit the maximum length of input.The text was updated successfully, but these errors were encountered: