WordPress.org

Make WordPress Core

Changeset 44817


Ignore:
Timestamp:
03/07/2019 10:34:03 PM (6 months ago)
Author:
desrosj
Message:

Widgets: Remove change event when editing a Custom HTML widget.

The change event was previously required to ensure that the Customizer picked detected changes to the widget's content and synced them to the preview. In the current state, though, the trigger( 'change' ) is no longer required and is causing issues with the widget's “Done” and “Save” buttons.

Merges [44816] to the 5.1 branch.

Fixes #46335.
Props audrasjb, afercia, westonruter.

Location:
branches/5.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.1

  • branches/5.1/src/js/_enqueues/wp/widgets/custom-html.js

    r44474 r44817  
    116116            if ( ! control.contentUpdateBypassed ) {
    117117                syncInput = control.syncContainer.find( '.sync-input.content' );
    118                 control.fields.content.val( syncInput.val() ).trigger( 'change' );
     118                control.fields.content.val( syncInput.val() );
    119119            }
    120120        },
Note: See TracChangeset for help on using the changeset viewer.