Skip to content

Commit

Permalink
change EntityLink innerRef
Browse files Browse the repository at this point in the history
  • Loading branch information
olmobrutall committed Oct 23, 2019
1 parent 2a6b54e commit c4b8275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Signum.React/Scripts/SearchControl/EntityLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface EntityLinkProps extends React.HTMLAttributes<HTMLAnchorElement>
inPlaceNavigation?: boolean;
onNavigated?: (lite: Lite<Entity>) => void;
getViewPromise?: (e: ModifiableEntity | null) => undefined | string | Navigator.ViewPromise<ModifiableEntity>;
innerRef?: (node: HTMLAnchorElement | null) => void;
innerRef?: React.Ref<HTMLAnchorElement>;
}

export default class EntityLink extends React.Component<EntityLinkProps>{
Expand All @@ -24,7 +24,7 @@ export default class EntityLink extends React.Component<EntityLinkProps>{

return (
<Link
innerRef={this.props.innerRef}
innerRef={this.props.innerRef as any}
to={Navigator.navigateRoute(lite)}
title={TitleManager.useTitle ? this.props.title || getToString(lite) : undefined}
onClick={this.handleClick}
Expand Down

0 comments on commit c4b8275

Please sign in to comment.