Socket
Socket
Sign inDemoInstall

@percy/dom

Package Overview
Dependencies
Maintainers
1
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/dom - npm Package Compare versions

Comparing version 1.28.3-beta.0 to 1.28.3-beta.1

10

dist/bundle.js

@@ -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', '');

4

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc