I am working on the configurable product view page.
I want to add an event to check if all options are checked before an AJAX call.
I tried a solution like this to override the widget Magento_Swatches/js/SwatchRenderer, but failed. When I clicked or I chose an option, it didn't execute my custom function.
Do you have some advise for my problem and how should i do it?
Did I forgot something?