Skip to content

Commit

Permalink
chore: improve condition for multiple parent check
Browse files Browse the repository at this point in the history
  • Loading branch information
sairajchouhan committed Nov 14, 2024
1 parent 56947cc commit 119294b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/visualBuilder/utils/handleIndividualFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ export async function handleIndividualFields(
}

// * title, single single_line, single multi_line, single number
if (ALLOWED_INLINE_EDITABLE_FIELD.includes(fieldType) && !fieldSchema.multiple) {
if (ALLOWED_INLINE_EDITABLE_FIELD.includes(fieldType)) {
if(fieldSchema.multiple){
const isFieldContainer = Number(fieldMetadata.instance.fieldPathWithIndex.split('.').at(-1))
if(Number.isNaN(isFieldContainer)) return;
}

let actualEditableField = editableElement as HTMLElement;

VisualBuilder.VisualBuilderGlobalState.value.focusFieldValue =
Expand Down

0 comments on commit 119294b

Please sign in to comment.