Merge branch 'develop' into feature/CSR-1112

This commit is contained in:
Leah Schumann 2023-04-14 13:50:02 -04:00
commit f01eb65816

View file

@ -132,10 +132,6 @@ export default {
customButtonQuestionId: String, customButtonQuestionId: String,
}, },
setup(props) { setup(props) {
const buttonQuestionId = !props.customButtonQuestionId
? `button-question-${crypto.randomUUID()}`
: props.customButtonQuestionId;
const propsClone = Object.assign({}, props); const propsClone = Object.assign({}, props);
const modelValue = propsClone.modelValue; const modelValue = propsClone.modelValue;
@ -145,10 +141,9 @@ export default {
}; };
const { errorMessage, handleBlur, handleChange, meta, validate, errors, resetField } = const { errorMessage, handleBlur, handleChange, meta, validate, errors, resetField } =
useField(buttonQuestionId, props.validationRules, fieldOptions); useField(props.groupName, props.validationRules, fieldOptions);
return { return {
buttonQuestionId,
errorMessage, errorMessage,
handleBlur, handleBlur,
handleChange, handleChange,