payloadcms/payload

Highlight visual bug on type=relationship with 2+ items of `relationTo`

Opened this issue · 1 comments

Describe the Bug.

Image

Reproduction Steps

Create a field that looks similar to this:

{
  type: "relationship",
  name: "page",
  required: opts?.required ?? true,
  relationTo: ["pages", "inspiration-posts", "industry-posts"],
  admin: {
    condition: (_, siblingData) => siblingData.type === "internal",
  },
}

Environment Info

Payload: 3.56.0
Next.js: 15.5.2
Node.js: 22.18.0

Hey @miguelvictor - I just tested this on latest v3.61.1 and I'm unable to reproduce the behavior. Can you try this on latest?

If it's still happening on your end on latest, could you remove the required & admin.condition props and try it again?

I doubt these would affect this but just trying to rule out some things