[wp-trac] [WordPress Trac] #32941: Customizer changes to input field values after clicking Save not recorded

WordPress Trac noreply at wordpress.org
Thu Jul 9 13:24:15 UTC 2015


#32941: Customizer changes to input field values after clicking Save not recorded
--------------------------+-----------------------------
 Reporter:  mb5324897     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  4.2.2
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 Using Twenty-Fifteen:

 in the customizer sidebar, change the value of a text input, e.g. the site
 title to "abc". The changes will be reflected in the preview window, and
 the "Saved" button on top will change its text to "Save & Publish".

 When clicking on "Save & Publish", a spinner will appear and the AJAX
 request for the updated value will be sent. If the connection to the
 server is really slow (which can be simulated with command line tools like
 {{{tc}}}), the user has time to modify the contents of the text input once
 more, e.g. to "123". After some time, the server's response will arrive
 and the client code will consider the current value "123" as "saved". It
 is now not possible to click "Save" again, the button is still disabled.

 When reloading the page, the state resets and the client correctly
 considers "abc" to be the value stored on the server again.

 The problem is in {{{wp-admin/js/customize-controls.js}}}, where after the
 "Save" button has been clicked, but before the response has returned,
 additional KeyUp events on the text input do not cause a state change.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32941>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list