CSR-606: add maxlength to vin
This commit is contained in:
parent
4da61654b4
commit
b28f094db7
2 changed files with 3 additions and 0 deletions
|
|
@ -19,6 +19,7 @@
|
||||||
:validationRules="validationRules"
|
:validationRules="validationRules"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
@blur="handleChange"
|
@blur="handleChange"
|
||||||
|
:maxlength="maxLength ? maxLength : '999'"
|
||||||
/>
|
/>
|
||||||
<div v-show="errorMessage" class="row my-2 form-test-error">
|
<div v-show="errorMessage" class="row my-2 form-test-error">
|
||||||
<span class="d-inline-flex mt-0" role="alert">{{ errorMessage }}</span>
|
<span class="d-inline-flex mt-0" role="alert">{{ errorMessage }}</span>
|
||||||
|
|
@ -55,6 +56,7 @@ export default {
|
||||||
validationRules: String,
|
validationRules: String,
|
||||||
semiAggressiveValidation: Boolean,
|
semiAggressiveValidation: Boolean,
|
||||||
cmsWidgetName: String,
|
cmsWidgetName: String,
|
||||||
|
maxLength: String,
|
||||||
},
|
},
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const propsClone = Object.assign({}, props);
|
const propsClone = Object.assign({}, props);
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
disableAutoFill
|
disableAutoFill
|
||||||
validationRules="vin-required|vin-format"
|
validationRules="vin-required|vin-format"
|
||||||
:isDisabled="isVinFieldReadOnly"
|
:isDisabled="isVinFieldReadOnly"
|
||||||
|
maxLength="17"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue