File tree 3 files changed +2
-8
lines changed
3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export interface TooltipActionProps {
5
5
* The action to trigger the tooltip
6
6
* @default 'hover'
7
7
*/
8
- action : 'hover' | 'click' | 'prop' | string ;
8
+ action ? : 'hover' | 'click' | 'prop' | string ;
9
9
10
10
/**
11
11
* The alignment of the tooltip.
Original file line number Diff line number Diff line change @@ -85,12 +85,6 @@ export const computeTooltipPosition = (
85
85
const elementPosition = computedStyle . position ;
86
86
const currentRect = currentElement . getBoundingClientRect ( ) ;
87
87
88
- // if (elementPosition === 'static') {
89
- // currentElement = currentElement.parentElement;
90
- // continue;
91
- // }
92
-
93
- // console.log()
94
88
if ( elementPosition === 'fixed' ) {
95
89
fixedOffsetTop +=
96
90
currentRect . top + window . scrollY ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export interface TooltipProps {
5
5
* The action to trigger the tooltip
6
6
* @default 'hover'
7
7
*/
8
- action : 'hover' | 'click' | 'prop' | string ;
8
+ action ? : 'hover' | 'click' | 'prop' | string ;
9
9
10
10
/**
11
11
* The alignment of the tooltip.
You can’t perform that action at this time.
0 commit comments