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