File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ yarn add react-click-away-listener
20
20
- It's quite small in size.
21
21
- It's built with TypeScript.
22
22
- It supports both Mouse and Touch Events.
23
- - It supports React Portal .
23
+ - It works with Portals .
24
24
25
25
## Usage
26
26
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-click-away-listener" ,
3
- "version" : " 1.5.0-beta.1 " ,
3
+ "version" : " 1.5.0" ,
4
4
"description" : " A simple click away listener built with React Hooks" ,
5
5
"main" : " dist/react-click-away-listener.js" ,
6
6
"module" : " dist/react-click-away-listener.es.js" ,
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ type Events = MouseEvent | TouchEvent;
11
11
12
12
interface Props extends React . HTMLAttributes < HTMLElement > {
13
13
onClickAway : ( event : Events ) => void ;
14
- isPortal ?: boolean ;
15
14
mouseEvent ?: MouseEvents ;
16
15
touchEvent ?: TouchEvents ;
17
16
as ?: React . ElementType ;
@@ -20,7 +19,6 @@ interface Props extends React.HTMLAttributes<HTMLElement> {
20
19
const ClickAwayListener : FunctionComponent < Props > = ( {
21
20
as = 'div' ,
22
21
onClickAway,
23
- isPortal = false ,
24
22
mouseEvent = 'click' ,
25
23
touchEvent = 'touchend' ,
26
24
...props
You can’t perform that action at this time.
0 commit comments