diff --git a/src/js/media/views/attachment-compat.js b/src/js/media/views/attachment-compat.js index c0106bb8df..d24de56963 100644 --- a/src/js/media/views/attachment-compat.js +++ b/src/js/media/views/attachment-compat.js @@ -24,6 +24,11 @@ AttachmentCompat = View.extend(/** @lends wp.media.view.AttachmentCompat.prototy 'change textarea': 'save' }, + initialize: function() { + // Render the view when a new item is added. + this.listenTo( this.model, 'add', this.render ); + }, + /** * @return {wp.media.view.AttachmentCompat} Returns itself to allow chaining. */