Skip to content

Commit

Permalink
Merge pull request #300 from contentstack/VE-4009-pseudo-multiple
Browse files Browse the repository at this point in the history
  • Loading branch information
sairajchouhan authored Nov 15, 2024
2 parents 372b865 + 119294b commit 4d026d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/visualBuilder/utils/handleIndividualFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ export async function handleIndividualFields(

// * title, single single_line, single multi_line, single number
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 4d026d1

Please sign in to comment.