@arkui/hooks
Advanced tools
Comparing version 0.0.3-alpha.2 to 0.0.3-alpha.3
@@ -16,2 +16,3 @@ 'use strict'; | ||
if (container === null || container === void 0 ? void 0 : (_container$current = container.current) === null || _container$current === void 0 ? void 0 : _container$current.contains(e.target)) return undefined; | ||
e.stopPropagation(); | ||
return onTrigger(); | ||
@@ -18,0 +19,0 @@ }; |
@@ -12,2 +12,3 @@ import { useEffect, useRef, useMemo, useState, useCallback } from 'react'; | ||
if (container === null || container === void 0 ? void 0 : (_container$current = container.current) === null || _container$current === void 0 ? void 0 : _container$current.contains(e.target)) return undefined; | ||
e.stopPropagation(); | ||
return onTrigger(); | ||
@@ -14,0 +15,0 @@ }; |
{ | ||
"name": "@arkui/hooks", | ||
"version": "0.0.3-alpha.2", | ||
"version": "0.0.3-alpha.3", | ||
"license": "MIT", | ||
@@ -14,3 +14,3 @@ "main": "lib/index.cjs.js", | ||
}, | ||
"gitHead": "aafb6442e338453be2d7058807b6263c2703dad3" | ||
"gitHead": "0d0c02bde89e771b35b1e87d5c6216049410b188" | ||
} |
@@ -9,2 +9,3 @@ import {useEffect} from 'react'; | ||
if (container?.current?.contains(e.target)) return undefined; | ||
e.stopPropagation(); | ||
@@ -11,0 +12,0 @@ return onTrigger(); |
31158
927