Make WordPress Core

Changeset 55299


Ignore:
Timestamp:
02/08/2023 07:38:50 PM (16 months ago)
Author:
joedolson
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/media/views/attachment-compat.js

    r46800 r55299  
    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.
Note: See TracChangeset for help on using the changeset viewer.