[wp-trac] [WordPress Trac] #40909: Focus in attachment custom fields is lost when updating the value.

WordPress Trac noreply at wordpress.org
Fri Dec 14 20:03:04 UTC 2018


#40909: Focus in attachment custom fields is lost when updating the value.
--------------------------+------------------------------
 Reporter:  lucymtc       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.7.5
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:
--------------------------+------------------------------

Comment (by syhc):

 We (at work) have been running into the same problem.

 The problem seems to happen when there is more than 1 custom field, and
 that you have tabbed to a new field before `wp.media.model` has save the
 previous field.

 Our solution was to add an option to `media-views.js`
 `AttachmentCompat.save` function
 {{{
 this.model.saveCompat( data, {silent:'true'} )
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40909#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list