Merge branch 'develop' into feature/humphries/INSR-7768
This commit is contained in:
commit
144f04ce38
2 changed files with 11 additions and 4 deletions
|
|
@ -1,7 +1,10 @@
|
|||
<template>
|
||||
<div
|
||||
class="textarea-question"
|
||||
:class="(errors && errors.length) ? 'has-error' : ''">
|
||||
:class="[
|
||||
(errors && errors.length) ? 'has-error' : '',
|
||||
(meta?.valid && meta?.touched && !(errors && errors.length)) ? 'has-success' : ''
|
||||
]">
|
||||
<label
|
||||
:for="inputId"
|
||||
class="form-label">
|
||||
|
|
@ -84,7 +87,7 @@ export default {
|
|||
initialValue
|
||||
};
|
||||
|
||||
const { errorMessage, handleChange, handleBlur, validate, errors, resetField } =
|
||||
const { errorMessage, handleChange, handleBlur, validate, errors, resetField, meta } =
|
||||
useField(props.inputId, props.validationRules, fieldOptions);
|
||||
|
||||
return {
|
||||
|
|
@ -93,7 +96,8 @@ export default {
|
|||
handleBlur,
|
||||
validate,
|
||||
errors,
|
||||
resetField
|
||||
resetField,
|
||||
meta
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
<template>
|
||||
<div
|
||||
class="textbox-question"
|
||||
:class="(errors && errors.length) || hasError ? 'has-error' : ''">
|
||||
:class="[
|
||||
((errors && errors.length) || hasError) ? 'has-error' : '',
|
||||
(meta?.valid && meta?.touched && !((errors && errors.length) || hasError)) ? 'has-success' : ''
|
||||
]">
|
||||
<label
|
||||
v-if="displayQuestionText"
|
||||
:for="inputId"
|
||||
|
|
|
|||
Loading…
Reference in a new issue