mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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
This commit is contained in:
parent
7e0fe194aa
commit
17a4dcb303
@ -24,9 +24,6 @@ AttachmentCompat = View.extend(/** @lends wp.media.view.AttachmentCompat.prototy
|
||||
'change textarea': 'save'
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
this.listenTo( this.model, 'change:compat', this.render );
|
||||
},
|
||||
/**
|
||||
* @return {wp.media.view.AttachmentCompat} Returns itself to allow chaining.
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user