@pluralsight/ps-design-system-util
Advanced tools
Comparing version 10.1.1 to 10.1.2
import React from 'react'; | ||
/** | ||
* @deprecated | ||
*/ | ||
export declare type RefFor<K extends keyof HTMLElementTagNameMap> = React.RefObject<HTMLElementTagNameMap[K]>; | ||
export declare type RefForwardingComponent<P = Record<string, unknown>, E = Element, S = Record<string, unknown>> = React.ForwardRefExoticComponent<P & React.RefAttributes<E>> & S; | ||
export declare type ValueOf<T> = T[keyof T]; |
@@ -101,3 +101,3 @@ "use strict"; | ||
var handleClickOutsideMenu = function (evt) { | ||
if (evt.target instanceof HTMLElement) { | ||
if (evt.target instanceof HTMLElement || evt.target instanceof SVGElement) { | ||
if (el.contains(evt.target)) | ||
@@ -104,0 +104,0 @@ return; |
import React from 'react'; | ||
/** | ||
* @deprecated | ||
*/ | ||
export declare type RefFor<K extends keyof HTMLElementTagNameMap> = React.RefObject<HTMLElementTagNameMap[K]>; | ||
export declare type RefForwardingComponent<P = Record<string, unknown>, E = Element, S = Record<string, unknown>> = React.ForwardRefExoticComponent<P & React.RefAttributes<E>> & S; | ||
export declare type ValueOf<T> = T[keyof T]; |
@@ -95,3 +95,3 @@ import React from 'react'; | ||
var handleClickOutsideMenu = function (evt) { | ||
if (evt.target instanceof HTMLElement) { | ||
if (evt.target instanceof HTMLElement || evt.target instanceof SVGElement) { | ||
if (el.contains(evt.target)) | ||
@@ -98,0 +98,0 @@ return; |
{ | ||
"name": "@pluralsight/ps-design-system-util", | ||
"version": "10.1.1", | ||
"version": "10.1.2", | ||
"description": "Runtime dependencies for utilitarian tasks. Analogous to a lodash.", | ||
@@ -40,3 +40,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "07e4768296b994bb9a518a2514a31be02768ae74" | ||
"gitHead": "08e74398e9c8543d98610380cb209fdbaa1f862a" | ||
} |
import React from 'react' | ||
/** | ||
* @deprecated | ||
*/ | ||
export type RefFor<K extends keyof HTMLElementTagNameMap> = React.RefObject< | ||
@@ -4,0 +7,0 @@ HTMLElementTagNameMap[K] |
@@ -113,3 +113,3 @@ import React from 'react' | ||
const handleClickOutsideMenu = (evt: MouseEvent) => { | ||
if (evt.target instanceof HTMLElement) { | ||
if (evt.target instanceof HTMLElement || evt.target instanceof SVGElement) { | ||
if (el.contains(evt.target)) return | ||
@@ -116,0 +116,0 @@ callback(evt) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
215085
3776