You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using EuiContextMenuItem's onClick property in TS I can only pass in a function without any params () => {...} the following error is reported when trying to use the event param:
It looks like the intersection types don't permit the use of the component per the following:
I'm pretty sure React.MouseEvent is the one we want. I might just be doing something wrong or this may also have been fixed.
Working around this atm by as anying my callback.
Additional Infos
Version: 13.1.1
Component: EuiContextMenuItem.
The text was updated successfully, but these errors were encountered:
Summary
When using EuiContextMenuItem's onClick property in TS I can only pass in a function without any params
() => {...}
the following error is reported when trying to use the event param:It looks like the intersection types don't permit the use of the component per the following:
I'm pretty sure
React.MouseEvent
is the one we want. I might just be doing something wrong or this may also have been fixed.Working around this atm by
as any
ing my callback.Additional Infos
Version:
13.1.1
Component:
EuiContextMenuItem
.The text was updated successfully, but these errors were encountered: