Skip to content

Commit 46ee07b

Browse files
committed
fix: removed edit icon when the click is on the container (#478)
1 parent 71913fb commit 46ee07b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/visualBuilder/components/FieldToolbar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function FieldToolbarComponent(
149149
disableFieldActions = isDisabled;
150150

151151
fieldType = getFieldType(fieldSchema);
152-
isModalEditable = ALLOWED_MODAL_EDITABLE_FIELD.includes(fieldType);
152+
153153

154154
Icon = fieldIcons[fieldType];
155155

@@ -171,6 +171,8 @@ function FieldToolbarComponent(
171171
fieldMetadata.instance.fieldPathWithIndex ||
172172
fieldMetadata.multipleFieldMetadata?.index === -1);
173173

174+
isModalEditable = ALLOWED_MODAL_EDITABLE_FIELD.includes(fieldType) && !isWholeMultipleField;
175+
174176
isReplaceAllowed =
175177
ALLOWED_REPLACE_FIELDS.includes(fieldType) && !isWholeMultipleField;
176178
// if (

0 commit comments

Comments
 (0)