File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ const Tooltip = ({
6868 }, delayHide)
6969 }
7070
71- const handleShowTooltip = (e ?: Event) => {
72- if (!e ) {
71+ const handleShowTooltip = (event ?: Event) => {
72+ if (!event ) {
7373 return
7474 }
7575 if (delayShow) {
@@ -78,9 +78,9 @@ const Tooltip = ({
7878 handleShow(true)
7979 }
8080 setActiveAnchor((anchor) =>
81- anchor.current === e .target ? anchor : { current: e .target as HTMLElement },
81+ anchor.current === event .target ? anchor : { current: event .target as HTMLElement },
8282 )
83- setProviderActiveAnchor({ current: e .target as HTMLElement })
83+ setProviderActiveAnchor({ current: event .target as HTMLElement })
8484
8585 if (tooltipHideDelayTimerRef.current) {
8686 clearTimeout(tooltipHideDelayTimerRef.current)
@@ -128,7 +128,7 @@ const Tooltip = ({
128128 return () => {}
129129 }
130130
131- const enabledEvents: { event: string; listener: (e ?: Event) => void }[] = []
131+ const enabledEvents: { event: string; listener: (event ?: Event) => void }[] = []
132132
133133 if (events.find((event: string) => event === 'click')) {
134134 enabledEvents.push({ event: 'click', listener: handleClickTooltipAnchor })
You can’t perform that action at this time.
0 commit comments