File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 13
13
v-on:focus.native =" setFocus"
14
14
v-on:blur.native =" unsetFocus"
15
15
v-bind:placeholder =" placeholder"
16
+ v-bind:maxlength =" question.maxLength"
16
17
/>
17
18
</span >
18
19
</template >
70
71
}
71
72
}
72
73
}
73
- </script >
74
+ </script >
Original file line number Diff line number Diff line change 35
35
v-bind:max =" question.max"
36
36
v-on:change =" onChange"
37
37
v-bind:placeholder =" placeholder"
38
+ v-bind:maxlength =" question.maxLength"
38
39
/>
39
40
</span >
40
41
</template >
59
60
60
61
data () {
61
62
return {
62
- inputType: ' text' ,
63
+ inputType: ' text' ,
63
64
canReceiveFocus: true
64
65
}
65
- },
66
+ },
66
67
67
68
methods: {
68
69
validate () {
82
83
}
83
84
}
84
85
}
85
- </script >
86
+ </script >
Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ export default class QuestionModel {
102
102
this . descriptionLink = [ ]
103
103
this . min = null
104
104
this . max = null
105
+ this . maxLength = null
105
106
this . nextStepOnAnswer = false
106
107
107
108
Object . assign ( this , options )
@@ -114,7 +115,7 @@ export default class QuestionModel {
114
115
if ( ! this . placeholder ) {
115
116
this . placeholder = this . mask
116
117
}
117
- }
118
+ }
118
119
119
120
if ( this . type === QuestionType . Url ) {
120
121
this . mask = null
You can’t perform that action at this time.
0 commit comments