The Clear button is by default coming from WooCommerce but not the script, you can add custom script below in either your WP Theme or third party plugin (i.e Simple Custom CSS and JS).
<script> jQuery('.reset_variations').click(function() { jQuery('.superSwatch').removeClass("disabled"); }); </script>
Alternatively, you can add the script above to Widget Footer (Insert Text)