Skip to content

Image upload/media picker buttons are non-functional initially #6

@woutervroege

Description

@woutervroege

Bug Description

Image upload/media picker buttons are non-functional in some dynamic field contexts (notably repeater subfields and conditionally shown groups).
Clicking Select image / Change image / Add image does nothing, or no media modal appears.

Impact

Users cannot pick or replace images in affected fields.
Blocks editorial flow for repeaters/conditional layouts.
Creates inconsistent behavior (works after reload or in some static fields, fails in dynamic ones).

Expected Behavior

Media buttons should always open the WordPress media modal and correctly write selected attachment IDs/preview data, regardless of where the field is rendered:

  • initial page load
  • repeater rows added dynamically
  • conditional groups shown after interaction

Actual Behavior

Buttons in dynamic/nested contexts are either not bound to click handlers or bound to stale instances, so media modal launch never occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions