carbon-components
Advanced tools
Comparing version 7.10.1 to 7.10.2
@@ -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
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
2955944