@helsenorge/core-utils
Advanced tools
Comparing version 26.5.0 to 26.6.0
@@ -9,3 +9,3 @@ import * as React from 'react'; | ||
const handleClickOrFocusOutside = (event) => { | ||
if (ref.current && !ref.current.contains(event.target)) { | ||
if (ref.current && !event.composedPath().includes(ref.current)) { | ||
onClickOutside(); | ||
@@ -12,0 +12,0 @@ } |
{ | ||
"name": "@helsenorge/core-utils", | ||
"author": "Helsenorge", | ||
"version": "26.5.0", | ||
"version": "26.6.0", | ||
"main": "./index.js", | ||
@@ -6,0 +6,0 @@ "license": "ISC", |
97265