Skip to content

Commit 13ace62

Browse files
authored
fix: removed edit icon when the click is on the container (#478)
1 parent baea843 commit 13ace62

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
@@ -163,7 +163,7 @@ function FieldToolbarComponent(
163163
disableFieldActions = isDisabled;
164164

165165
fieldType = getFieldType(fieldSchema);
166-
isModalEditable = ALLOWED_MODAL_EDITABLE_FIELD.includes(fieldType);
166+
167167

168168
Icon = fieldIcons[fieldType];
169169

@@ -185,6 +185,8 @@ function FieldToolbarComponent(
185185
fieldMetadata.instance.fieldPathWithIndex ||
186186
fieldMetadata.multipleFieldMetadata?.index === -1);
187187

188+
isModalEditable = ALLOWED_MODAL_EDITABLE_FIELD.includes(fieldType) && !isWholeMultipleField;
189+
188190
isReplaceAllowed =
189191
ALLOWED_REPLACE_FIELDS.includes(fieldType) && !isWholeMultipleField;
190192
// if (

0 commit comments

Comments
 (0)