@stenajs-webui/core
Advanced tools
Comparing version 0.0.38 to 0.0.39
@@ -633,3 +633,7 @@ import { createContext, useContext, useMemo, createElement, Fragment, useCallback, useState, useEffect, useRef } from 'react'; | ||
// Do nothing if clicking ref's element or descendent elements | ||
var allNotContains = refs.every(function (ref) { return ref.current && !ref.current.contains(event.target); }); | ||
var allNotContains = refs | ||
.filter(function (ref) { return ref.current; }) | ||
.every(function (ref) { | ||
return ref.current && !ref.current.contains(event.target); | ||
}); | ||
if (!allNotContains) { | ||
@@ -636,0 +640,0 @@ return; |
@@ -639,3 +639,7 @@ 'use strict'; | ||
// Do nothing if clicking ref's element or descendent elements | ||
var allNotContains = refs.every(function (ref) { return ref.current && !ref.current.contains(event.target); }); | ||
var allNotContains = refs | ||
.filter(function (ref) { return ref.current; }) | ||
.every(function (ref) { | ||
return ref.current && !ref.current.contains(event.target); | ||
}); | ||
if (!allNotContains) { | ||
@@ -642,0 +646,0 @@ return; |
{ | ||
"name": "@stenajs-webui/core", | ||
"version": "0.0.38", | ||
"version": "0.0.39", | ||
"description": "", | ||
@@ -62,3 +62,3 @@ "author": "mattias800", | ||
], | ||
"gitHead": "125b19fea0dd286b13818cba0f2812d95cc3dd12", | ||
"gitHead": "51174a70c8ff3d333c482380d83cfe51ac4fb3cd", | ||
"dependencies": { | ||
@@ -65,0 +65,0 @@ "@emotion/is-prop-valid": "^0.8.2" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
206213
1872