8manos / wc-variations-radio-buttons

Let your customers choose product variations using radio buttons instead of dropdowns.
https://wordpress.org/plugins/wc-variations-radio-buttons/
GNU General Public License v2.0
62 stars 34 forks source link

.removeAttr() is not working, change it to .prop() #44

Closed marian-kadanka closed 3 years ago

marian-kadanka commented 3 years ago

At least since upgrade to WordPress 5.6, hence jQuery 3.5.1, resetting variations button (link) isn't working anymore. Changing .removeAttr( "checked" ) to .prop( "checked", false) fixes the issue.

marian-kadanka commented 3 years ago

https://www.drupal.org/project/simpleads/issues/2417463

Mantish commented 3 years ago

Hi, thanks for the fix! It was still working on my end, but your change seems more correct :)