Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

carbon-components

Package Overview
Dependencies
Maintainers
5
Versions
1107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carbon-components - npm Package Compare versions

Comparing version 7.10.1 to 7.10.2

2

es/components/dropdown/dropdown.js

@@ -136,3 +136,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var focused = this.element.ownerDocument.activeElement;
return focused.matches(this.options.selectorItem) ? focused : null;
return focused.nodeType === Node.ELEMENT_NODE && focused.matches(this.options.selectorItem) ? focused : null;
}

@@ -139,0 +139,0 @@

@@ -5,3 +5,3 @@ {

"homepage": "http://carbondesignsystem.com/",
"version": "7.10.1",
"version": "7.10.2",
"module": "es/index.js",

@@ -8,0 +8,0 @@ "main": "umd/index.js",

@@ -101,3 +101,3 @@ import mixin from '../../globals/js/misc/mixin';

const focused = this.element.ownerDocument.activeElement;
return focused.matches(this.options.selectorItem) ? focused : null;
return focused.nodeType === Node.ELEMENT_NODE && focused.matches(this.options.selectorItem) ? focused : null;
}

@@ -104,0 +104,0 @@

@@ -221,3 +221,3 @@ (function (global, factory) {

var focused = this.element.ownerDocument.activeElement;
return focused.matches(this.options.selectorItem) ? focused : null;
return focused.nodeType === Node.ELEMENT_NODE && focused.matches(this.options.selectorItem) ? focused : null;
}

@@ -224,0 +224,0 @@ }, {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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