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

Admin interface not rendering dropdown for Enum on HydraAdmin

Open
#494 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start with the reproduction project linked in the issue and compare how the HydraAdmin and OpenApiAdmin components render a property configured with backed-enum values. Reproduce the plain-text field in HydraAdmin; done means the backed enum renders as a dropdown there, as it already does in OpenApiAdmin.

Written by the indexing model from the issue text.

Description

API Platform version(s) affected: 3.1.1

Description
HydraAdmin component does not render an Enum type field as a dropdown selection. OpenApiAdmin component renders correctly.

How to reproduce
Create an entity and a backed Enum, set the backed enum as a property on the entity. Configure the property openapi context with enum and values from the backed enum.

API documentation properly shows the property as an enum on both schemas, however, when rendered with the HydraAdmin component it gets rendered as a plain text field.

https://github.com/mihai-amihailesei/api-platform-admin-bug

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.