Changes in widget customizer not triggering ‘save and publish’

I was experiencing a similar problem with one of my custom widgets. It seems that dynamically inserted field values do not trigger the widget form to update. I wound up adding the following to the js that inserts the dynamic value:

$(input).trigger('change');

where input is the field you are updating.

Not sure if there is a better way to do this, but this is working for me.

Leave a Comment