Skip to content

Commit f042568

Browse files
committed
v1.5.0 🎉
1 parent c2a3cca commit f042568

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ yarn add react-click-away-listener
2020
- It's quite small in size.
2121
- It's built with TypeScript.
2222
- It supports both Mouse and Touch Events.
23-
- It supports React Portal.
23+
- It works with Portals.
2424

2525
## Usage
2626

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-click-away-listener",
3-
"version": "1.5.0-beta.1",
3+
"version": "1.5.0",
44
"description": "A simple click away listener built with React Hooks",
55
"main": "dist/react-click-away-listener.js",
66
"module": "dist/react-click-away-listener.es.js",

src/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ type Events = MouseEvent | TouchEvent;
1111

1212
interface Props extends React.HTMLAttributes<HTMLElement> {
1313
onClickAway: (event: Events) => void;
14-
isPortal?: boolean;
1514
mouseEvent?: MouseEvents;
1615
touchEvent?: TouchEvents;
1716
as?: React.ElementType;
@@ -20,7 +19,6 @@ interface Props extends React.HTMLAttributes<HTMLElement> {
2019
const ClickAwayListener: FunctionComponent<Props> = ({
2120
as = 'div',
2221
onClickAway,
23-
isPortal = false,
2422
mouseEvent = 'click',
2523
touchEvent = 'touchend',
2624
...props

0 commit comments

Comments
 (0)