@@ -6,11 +6,13 @@ import {
66 FlexBoxJustifyContent ,
77 Button ,
88 PopoverDomRef ,
9+ ButtonDomRef ,
910} from '@ui5/webcomponents-react' ;
1011import { AnalyticalTableColumnDefinition } from '@ui5/webcomponents-react/wrappers' ;
1112import PopoverPlacement from '@ui5/webcomponents/dist/types/PopoverPlacement.js' ;
1213import '@ui5/webcomponents-icons/dist/copy' ;
13- import { JSX , useRef , useState , MouseEvent , ReactNode } from 'react' ;
14+ import { JSX , useRef , useState , ReactNode } from 'react' ;
15+ import type { ButtonClickEventDetail } from '@ui5/webcomponents/dist/Button.js' ;
1416import {
1517 ControlPlaneStatusType ,
1618 ReadyStatus ,
@@ -21,6 +23,7 @@ import { AnimatedHoverTextButton } from '../Helper/AnimatedHoverTextButton.tsx';
2123import { useTranslation } from 'react-i18next' ;
2224import { useLink } from '../../lib/shared/useLink.ts' ;
2325import TooltipCell from '../Shared/TooltipCell.tsx' ;
26+ import type { Ui5CustomEvent } from '@ui5/webcomponents-react-base' ;
2427
2528interface CellData < T > {
2629 cell : {
@@ -46,9 +49,9 @@ const MCPHealthPopoverButton = ({ mcpStatus, projectName, workspaceName, mcpName
4649 const { githubIssuesSupportTicket } = useLink ( ) ;
4750 const { t } = useTranslation ( ) ;
4851
49- const handleOpenerClick = ( e : MouseEvent < HTMLButtonElement > ) => {
52+ const handleOpenerClick = ( event : Ui5CustomEvent < ButtonDomRef , ButtonClickEventDetail > ) => {
5053 if ( popoverRef . current ) {
51- ( popoverRef . current as unknown as { opener : EventTarget | null } ) . opener = e . target ;
54+ ( popoverRef . current as unknown as { opener : EventTarget | null } ) . opener = event . target ;
5255 setOpen ( ( prev ) => ! prev ) ;
5356 }
5457 } ;
0 commit comments