@percy/dom
Advanced tools
Comparing version 1.28.3-beta.0 to 1.28.3-beta.1
@@ -22,2 +22,12 @@ (function() { | ||
case 'radio': | ||
/* | ||
here we are removing the checked attr if present by default, | ||
so that only the current selected radio-button will have the checked attr present in the dom | ||
this happens because in html, | ||
when the checked attribute is present in the multiple radio-buttons for which only one can be selected at a time, | ||
the browser will only render the last checked radio-button by default, | ||
when a user selects any particular radio-button, the checked attribute on other buttons is not removed, | ||
hence sometimes it shows inconsistent state as html will still show the last radio as selected. | ||
*/ | ||
cloneEl.removeAttribute('checked'); | ||
if (elem.checked) { | ||
@@ -24,0 +34,0 @@ cloneEl.setAttribute('checked', ''); |
{ | ||
"name": "@percy/dom", | ||
"version": "1.28.3-beta.0", | ||
"version": "1.28.3-beta.1", | ||
"license": "MIT", | ||
@@ -38,3 +38,3 @@ "repository": { | ||
}, | ||
"gitHead": "4f68901eae5d818f24940acb397d1c3f4c0182e5" | ||
"gitHead": "3a838eedd0f07f57c6c61cd0cba1c7e20cc95af3" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33605
643