css-query-selector
Advanced tools
Comparing version
@@ -18,3 +18,3 @@ "use strict"; | ||
if ('function' !== typeof base) { | ||
console.error('query base should pass with function'); | ||
console.error('Query base should pass with function'); | ||
} | ||
@@ -42,3 +42,3 @@ | ||
all.some(function (p) { | ||
if (p.contains(el)) { | ||
if (p.contains(el) && !p.isSameNode(el)) { | ||
hit = p; | ||
@@ -81,2 +81,3 @@ return true; | ||
var _default = queryFrom; | ||
exports.default = _default; | ||
exports.default = _default; | ||
module.exports = exports.default; |
@@ -9,3 +9,3 @@ import _toConsumableArray from "reshow-runtime/es/helpers/toConsumableArray"; | ||
if ('function' !== typeof base) { | ||
console.error('query base should pass with function'); | ||
console.error('Query base should pass with function'); | ||
} | ||
@@ -33,3 +33,3 @@ | ||
all.some(function (p) { | ||
if (p.contains(el)) { | ||
if (p.contains(el) && !p.isSameNode(el)) { | ||
hit = p; | ||
@@ -36,0 +36,0 @@ return true; |
{ | ||
"name": "css-query-selector", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "CSS simple query alias function", | ||
@@ -5,0 +5,0 @@ "repository": "react-atomic/react-atomic-organism", |
5705
1.35%160
0.63%