Artist grid missing context menu, fixed

This commit is contained in:
James Barnsley
2018-01-02 16:06:09 +13:00
parent 93eb1daee4
commit 8e58d2f868
2 changed files with 10 additions and 2 deletions

View File

@ -8,6 +8,12 @@ export default class URILink extends React.Component{
super(props);
}
handleContextMenu(e){
if (this.props.onContextMenu){
this.props.onContextMenu(e);
}
}
render(){
var to = null;
var uri = encodeURIComponent(this.props.uri);
@ -45,7 +51,8 @@ export default class URILink extends React.Component{
return (
<Link
className={this.props.className ? this.props.className : null}
to={to}>
to={to}
onContextMenu={e => this.handleContextMenu(e)}>
{this.props.children}
</Link>
);