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