Skip to content

Site breaks when trying to choose existing media #16824

@openbayou

Description

@openbayou
Screen.Recording.2026-06-01.at.11.00.39.PM.mov

Describe the Bug

I have a problem with the image field. I have beforechanges in my media collection to move images to YYYY/MM/filename so there's no duplicate images to deal with. The problem I'm having is when I clicking on "choose from existing" the media panel popups and then disappears. The image field disappears and you can't click on anything on the site. Enclosed is a screen capture of the problem and zip of my src to look around

https://www.dropbox.com/scl/fi/igqb4axn4v46llnkd4803/Screen-Recording-2026-05-27-at-1.20.50-AM.mov?rlkey=txg3wyyjn4kuv1q8mk7qqbaqn&st=6c78q5mn&dl=1

https://www.dropbox.com/scl/fi/ukkdxvlaklqbw80ue1vec/src.zip?rlkey=9odkr4veenhuudclnywh5r5cc&st=bgf6pe20&dl=0

Link to the code that reproduces this issue

none

Reproduction Steps

Click on choose from existing and then close the media picker. Usually the second click is when the admin crashes.

Which area(s) are affected?

Not sure

Environment Info

Binaries:
  Node: 24.15.0
  npm: 11.16.0
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  payload: 3.85.0
  next: 16.2.6
  @payloadcms/db-mongodb: 3.85.0
  @payloadcms/graphql: 3.85.0
  @payloadcms/next/utilities: 3.85.0
  @payloadcms/richtext-lexical: 3.85.0
  @payloadcms/translations: 3.85.0
  @payloadcms/ui/shared: 3.85.0
  react: 19.2.6
  react-dom: 19.2.6
Operating System:
  Platform: linux
  Arch: arm64
  Version: #22-Ubuntu SMP PREEMPT_DYNAMIC Mon May 25 15:37:49 UTC 2026
  Available memory (MB): 15433
  Available CPU cores: 4

Metadata

Metadata

Assignees

No one assigned

    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