Skip to content

Commit 17a4dcb

Browse files
committed
Media: Fix focus loss updating custom fields in media modal.
When the save action runs to dynamically save changes to custom fields in the media modal, the custom fields container is re-rendered, losing focus. Remove the re-rendering of custom fields to prevent loss of focus. Props lucymtc, teebee, syhc, afrin29, antpb, joedolson. Fixes #40909. git-svn-id: https://develop.svn.wordpress.org/trunk@55299 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7e0fe19 commit 17a4dcb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/js/media/views/attachment-compat.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ AttachmentCompat = View.extend(/** @lends wp.media.view.AttachmentCompat.prototy
2424
'change textarea': 'save'
2525
},
2626

27-
initialize: function() {
28-
this.listenTo( this.model, 'change:compat', this.render );
29-
},
3027
/**
3128
* @return {wp.media.view.AttachmentCompat} Returns itself to allow chaining.
3229
*/

0 commit comments

Comments
 (0)