File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -141,13 +141,13 @@ const Tooltip = ({
141141 if ( ! event ) {
142142 return
143143 }
144- const e = event as MouseEvent
145- const p = {
146- x : e . clientX ,
147- y : e . clientY ,
144+ const mouseEvent = event as MouseEvent
145+ const mousePosition = {
146+ x : mouseEvent . clientX ,
147+ y : mouseEvent . clientY ,
148148 }
149- handleTooltipPosition ( p )
150- setLastFloatPosition ( p )
149+ handleTooltipPosition ( mousePosition )
150+ setLastFloatPosition ( mousePosition )
151151 }
152152
153153 const handleClickTooltipAnchor = ( ) => {
@@ -161,8 +161,8 @@ const Tooltip = ({
161161 }
162162 }
163163
164- const handleClickOutsideAnchor = ( e : MouseEvent ) => {
165- if ( e . target === activeAnchor . current ) {
164+ const handleClickOutsideAnchor = ( event : MouseEvent ) => {
165+ if ( event . target === activeAnchor . current ) {
166166 return
167167 }
168168 setShow ( false )
You can’t perform that action at this time.
0 commit comments