withOnOutsideClick Function

Deprecated  in 4.15.0. Used internally.

withOnOutsideClick is a React higher-order component that adds outside click support.

withOnOutsideClick<ComponentProps extends { T }>(Component: React.ComponentType<ComponentProps>, defaultOnOutsideClick?: (event: MouseEvent) => any, useCapture: booleantrue, usePointerEvents: booleantrue):

Parameter Type Description
Component React.ComponentType<ComponentProps>  
defaultOnOutsideClick (event: MouseEvent) => any  
useCapture boolean  
usePointerEvents boolean  

Returns -

Defined in

Last Updated: 17 December, 2024