Merge pull request #424 from Safelite/feature/richardson/SSR-664

update for dropdown inactive errors on form submit
This commit is contained in:
brich1212safe 2023-08-24 09:58:44 -04:00 committed by GitHub
commit bd7e3192ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@
</option>
</select>
<div
v-show="errorMessage"
v-show="errorMessage && !isDisabled"
class="row mt-1 form-test-error">
<span role="alert">{{ errorMessage }}</span>
</div>
@ -79,9 +79,7 @@ export default {
initialValue
};
const { errorMessage, handleBlur, handleChange, meta, errors } = useField(props.inputId,
props.validationRules,
fieldOptions);
const { errorMessage, handleBlur, handleChange, meta, errors } = useField(props.inputId, props.validationRules, fieldOptions);
return {
errorMessage,
@ -111,11 +109,7 @@ export default {
const words = this.questionText.toString().split(/[ ]+/);
words.forEach((word) => {
const position = 1;
const newWord = [
word.toString().slice(0, position),
noBreakChar,
word.toString().slice(position)
].join('');
const newWord = [word.toString().slice(0, position), noBreakChar, word.toString().slice(position)].join('');
questionText += `${newWord} `;
});