Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Issues with edit form when useEmbedded = true

Open
#346 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
react, typescript
Domain
frontend

Research direction

Start with the useEmbedded data-provider example and the ReferenceInput/AutocompleteInput edit-form snippet in the issue. Reproduce editing without changing certificateType, then repeat after reselecting it and compare the request payloads. Done means both paths submit the certificate type as an IRI rather than the embedded object.

Written by the indexing model from the issue text.

Description

API Platform version(s) affected: 2.4.3

Description
I tried setting useEmbedded to true in my data provider (followed the example in APIP documentation). I created create and edit forms following the examples. In edit form I have:

<ReferenceInput
  filterToQuery={searchText => ({ name: searchText })}
  format={v => v['@id'] || v}
  reference="certificate_types"
  source="certificateType"
>
  <AutocompleteInput optionText="name" />
</ReferenceInput>

The create view works as expected but edit is causing issues unless I reselect he certificate type field.

If I edit the page without touching the certificate type field the whole embedded data object is sent. If I reselect the certificate type field, only IRI is sent with the request.

Is this a bug or am I missing something?

Dominant language
TypeScript
Stars
516
Forks
134
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

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 api-platform/admin

All issues in api-platform/admin

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.