Hey there, I am building a widget that allows the user to upload/select a number of images. Due to the dynamic nature, input fields are dynamically added to the widget form. Everything works exactly how I'd like, however in the customizer I can't seem to dirty the widget telling the customizer it can be saved when an image is added or removed.
I figure the input fields I am dynamically adding to the form are missing certain event hooks that WordPress adds when the customizer is first loaded. But what I can't figure out is what hooks they are, and how to fire them.
Here is a description of the event:
1. You customize a page with dynamic sidebars.
2. Add a widget to that sidebar within the customizer.
3. Save and publish.
4. Modify the widget, this should mark the widget as dirty and enable the save/publish button again.
Curiously if I type something in the title field of the widget this event does fire, and saving works exactly as I should, so I'm certain there must be a way around this. I've done a lot of digging with no avail, so any help on this subject would be deeply appreciated.
Steve