[wp-trac] [WordPress Trac] #40974: Updated text widget do not save text (when using paste)
WordPress Trac
noreply at wordpress.org
Wed Jul 19 18:32:40 UTC 2017
#40974: Updated text widget do not save text (when using paste)
------------------------------+-----------------------
Reporter: rinkuyadav999 | Owner: azaozz
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.8.1
Component: Widgets | Version: 4.8
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------
Comment (by westonruter):
@azaozz I was still finding issues with previewing changes to the Text
widget in the Customizer, namely when making a change in TinyMCE and then
switching to the Text tab before the 1s debounced delay for checking if
dirty.
Here's the change that fixes that issue: https://github.com/xwp/wordpress-
develop/pull/240/commits/366c20afa49acfea1f0c34bae9a366718b6a7c69
Essentially we just keep around a second flag, in addition to the dirty
state, to keep track of whether or not we need to trigger the `change`
event for the sake of syncing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40974#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list