Skip to content

Commit afc6ca4

Browse files
what-is-a-crowmohsinulhaq
authored andcommitted
allow props to pass through to underlying Popper component (#83)
1 parent 9cbad00 commit afc6ca4

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.size-snapshot.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"dist/cjs/react-popper-tooltip.js": {
3-
"bundled": 14528,
4-
"minified": 7979,
5-
"gzipped": 2340
3+
"bundled": 14884,
4+
"minified": 8278,
5+
"gzipped": 2420
66
},
77
"dist/esm/react-popper-tooltip.js": {
8-
"bundled": 14489,
9-
"minified": 7955,
10-
"gzipped": 2335,
8+
"bundled": 14846,
9+
"minified": 8260,
10+
"gzipped": 2416,
1111
"treeshaked": {
1212
"rollup": {
13-
"code": 172,
14-
"import_statements": 152
13+
"code": 236,
14+
"import_statements": 216
1515
},
1616
"webpack": {
17-
"code": 8654
17+
"code": 8937
1818
}
1919
}
2020
}

src/TooltipTrigger.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ class TooltipTrigger extends Component<
6161
usePortal,
6262
portalContainer,
6363
followCursor,
64-
getTooltipRef
64+
getTooltipRef,
65+
...restProps
6566
} = this.props;
6667

6768
const popper = (
@@ -82,6 +83,7 @@ class TooltipTrigger extends Component<
8283
}),
8384
...modifiers
8485
}}
86+
{...restProps}
8587
>
8688
{({
8789
ref,

0 commit comments

Comments
 (0)