fix(form-builder): correct value of selection box behavior in Edit of new Added Question dialog (#27890)
* fix/SelectionBox Issue * comment removed * remove empty lines --------- Co-authored-by: Romit <85230081+romitg2@users.noreply.github.com> Co-authored-by: Romit <romitgabani1.work@gmail.com>
This commit is contained in:
co-authored by
Romit
Romit
parent
14563f664e
commit
fad64a012a
@@ -433,7 +433,7 @@ function Options({
|
||||
label = "Options",
|
||||
value,
|
||||
|
||||
onChange = () => {},
|
||||
onChange = () => { },
|
||||
className = "",
|
||||
readOnly = false,
|
||||
showPrice = false,
|
||||
@@ -645,7 +645,7 @@ function FieldEditDialog({
|
||||
}
|
||||
fieldForm.setValue("type", value, { shouldDirty: true });
|
||||
}}
|
||||
value={dialog.data ? getLocationFieldType(dialog.data) : fieldTypesConfigMap[formFieldType]}
|
||||
value={fieldTypesConfigMap[formFieldType]}
|
||||
options={fieldTypes.filter((f) => !f.systemOnly)}
|
||||
label={t("input_type")}
|
||||
/>
|
||||
@@ -1008,11 +1008,11 @@ function VariantFields({
|
||||
const rhfVariantFieldPrefix = `variantsConfig.variants.${variantName}.fields.${index}` as const;
|
||||
const fieldTypeConfigVariants =
|
||||
fieldTypeConfigVariantsConfig.variants[
|
||||
variantName as keyof typeof fieldTypeConfigVariantsConfig.variants
|
||||
variantName as keyof typeof fieldTypeConfigVariantsConfig.variants
|
||||
];
|
||||
const appUiFieldConfig =
|
||||
fieldTypeConfigVariants.fieldsMap[f.name as keyof typeof fieldTypeConfigVariants.fieldsMap];
|
||||
|
||||
|
||||
return (
|
||||
<li className={classNames(!isSimpleVariant ? "p-4" : "")} key={f.name}>
|
||||
{!isSimpleVariant && (
|
||||
|
||||
Reference in New Issue
Block a user