hoist-react icon indicating copy to clipboard operation
hoist-react copied to clipboard

Button does not accept `onContextMenu` prop

Open ghsolomon opened this issue 1 year ago • 0 comments

When trying to pass an onContextMenu handler to a button element factory, TypeScript warns that onContextMenu does not exist in type ElementSpec<ButtonProps<null>>.

onContextMenu is a React prop as opposed to the native contextmenu DOM property, so I suspect we aren't extending React's default props somewhere.

ghsolomon avatar May 22 '23 18:05 ghsolomon