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.
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:
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.