hoist-react
hoist-react copied to clipboard
Button does not accept `onContextMenu` prop
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.