Skip to content

Filtering by relationship entries sometimes removes the selected item #17048

Description

@angrotheman

Describe the Bug

When filtering by relationship entries, the filtering itself appears to work correctly:

  • The filter parameters in the URL look correct.
  • The displayed results seem to match the selected filter.

However, after selecting an item from the referenced collection, the currently selected item is often removed unexpectedly. The behavior appears random and is not consistently reproducible.

Link to the code that reproduces this issue

https://github.com/payloadcms/payload

Reproduction Steps

filter-bug.mov

Which area(s) are affected?

area: core, area: ui

Environment Info

payload: 3.85.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreCore Payload functionalityarea: uiRelated to the admin panel.status: needs-triagePossible bug which hasn't been reproduced yetv3

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions