Merge branch 'develop' into feature/CSR-1112
This commit is contained in:
commit
f01eb65816
1 changed files with 1 additions and 6 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue