@@ -2,7 +2,7 @@ import type { PopoverProps } from '@blueprintjs/core';
22import { Popover } from '@blueprintjs/core' ;
33import type { Interpolation , Theme } from '@emotion/react' ;
44import styled from '@emotion/styled' ;
5- import type { CSSProperties } from 'react' ;
5+ import type { CSSProperties , MouseEvent } from 'react' ;
66import { useState } from 'react' ;
77import type { ButtonProps } from 'react-science/ui' ;
88import { Button } from 'react-science/ui' ;
@@ -173,7 +173,7 @@ export function ActionsButtonsPopover(props: ActionsButtonsPopoverProps) {
173173
174174 const { visibleButtons, disablePopover } = filterButtons ( buttons ) ;
175175
176- function handleMouseEnter ( event : any ) {
176+ function handleMouseEnter ( event : MouseEvent < HTMLElement > ) {
177177 const { clientX, clientY, currentTarget } = event ;
178178 if ( ! ( currentTarget instanceof Element ) ) return ;
179179 const rect = currentTarget . getBoundingClientRect ( ) ;
@@ -193,13 +193,12 @@ export function ActionsButtonsPopover(props: ActionsButtonsPopoverProps) {
193193 popoverClassName = "actions-buttons-popover"
194194 interactionKind = "hover"
195195 enforceFocus = { false }
196- onOpening = { handleMouseEnter }
197196 disabled = { disablePopover || disabled }
198197 renderTarget = { ( { onMouseEnter, isOpen, ...otherProps } ) => (
199198 < Wrapper
200199 { ...targetProps }
201200 { ...otherProps }
202- onMouseEnter = { ( event : any ) => {
201+ onMouseEnter = { ( event : MouseEvent < HTMLElement > ) => {
203202 handleMouseEnter ( event ) ;
204203 onMouseEnter ?.( event ) ;
205204 } }
0 commit comments