Skip to content

Conditional fields in link feature don't work any more #11105

Open
@johannesspohr

Description

Describe the Bug

When creating a link, the form should conditionally show the URL or related entity. However, this is not working any more since 3.22.

Image

Link to the code that reproduces this issue

https://github.com/johannesspohr/payload-link-bug-reproduction

Reproduction Steps

The repo is just the result of create-payload-app with the website template without any modifications

  • create a Page and insert a link
  • select "Internal link"
  • the field should change to Entity, but it stays "URL"

Which area(s) are affected? (Select all that apply)

area: ui

Environment Info

Payload: 3.22
Next: 15.1.7

Metadata

Assignees

No one assigned

    Labels

    status: needs-triagePossible bug which hasn't been reproduced yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions