|
|
@@ -38,8 +38,10 @@ export class UserPicture extends React.Component {
|
|
|
RootElmWithLink = (props) => {
|
|
|
const { user } = this.props;
|
|
|
const href = userPageRoot(user);
|
|
|
-
|
|
|
- return <a href={href} {...props}>{props.children}</a>;
|
|
|
+ // Using <span> tag here instead of <a> tag because UserPicture is used in SearchResultList which is essentially a anchor tag.
|
|
|
+ // Nested anchor tags causes a warning.
|
|
|
+ // https://stackoverflow.com/questions/13052598/creating-anchor-tag-inside-anchor-taga
|
|
|
+ return <span onClick={() => { window.location.href = href }} {...props}>{props.children}</span>;
|
|
|
}
|
|
|
|
|
|
withTooltip = (RootElm) => {
|