[wp-trac] [WordPress Trac] #35832: Paste action in text field/area context menu in theme customizer leaves Save&Publish button disabled (Firefox)

WordPress Trac noreply at wordpress.org
Mon Feb 15 04:51:39 UTC 2016


#35832: Paste action in text field/area context menu in theme customizer leaves
Save&Publish button disabled (Firefox)
--------------------------+---------------------------------------------
 Reporter:  xkr47         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.5
Component:  Customize     |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  ui, javascript, administration
--------------------------+---------------------------------------------
Changes (by westonruter):

 * keywords:   => has-patch
 * version:  4.4.2 => 3.4
 * milestone:  Awaiting Review => 4.5


Comment:

 @xkr47 Thanks for the report. I can reproduce this issue. It seems the
 problem is that the default element synchronizer logic for the `text`
 field is only looking for changes in response to `change` and `keyup`
 events. Since no `keyup` happens when you paste via the context menu, and
 since you are still focused on the field, no `change` happens.

 The fix is to just make sure that `input` event is always used. See
 [attachment:35832.diff] and please test.

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


More information about the wp-trac mailing list