Child fields in objects (in arrays) do not render

Open
#8,682 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@dcousens is already working on this.

Since Jul 20, 2025.

Assessment

This issue has not been assessed yet.

Description

needs reproduction

Reproduction

When adding child fields in an object field, they do not render. I'm using this in an array field as below, and am stumped as to how to edit the child field in question.

// ...other componentBlock definitions
  faq: component({
    preview: (props) => {
      return (
        <NotEditable>[placeholder preview]</NotEditable>
      )
    },
    label: 'FAQ',
    schema: {
      title: fields.text({ label: 'Titel' }),      
      questions: fields.array(
        fields.object({
          question: fields.text({
            label: 'Vraag'
          }),
          answer: fields.child({
            kind: 'inline',
            placeholder: 'Antwoord',
            links: 'inherit'
          })
        }),
        { 
          label: 'Vragen',
          itemLabel: props => { return props.fields.question?.value || 'New item' }
        }
      )
    }
  }),

Expectation

The child field to render within the popup of the array field's object field.

For context

Node 18.14, recent versions of Chrome and Firefox.

Dominant language
TypeScript
Stars
10k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
38

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from keystonejs/keystone

All issues in keystonejs/keystone

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.