A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(Avatar): Correctly handle the attribute of the user avatar button's tag.
haitaoof6f32db7ec55
diff --git a/ui/src/components/Avatar/index.tsx b/ui/src/components/Avatar/index.tsxindex b5029bad..4dad3aa9 100644--- a/ui/src/components/Avatar/index.tsx+++ b/ui/src/components/Avatar/index.tsx@@ -41,7 +41,6 @@ const Index: FC<IProps> = ({<>{/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role,jsx-a11y/control-has-associated-label */}<img- role="button"src={url || DefaultAvatar}width={size}height={size}diff --git a/ui/src/components/Header/components/NavItems/index.tsx b/ui/src/components/Header/components/NavItems/index.tsxindex d9ccd553..0fb9e289 100644--- a/ui/src/components/Header/components/NavItems/index.tsx+++ b/ui/src/components/Header/components/NavItems/index.tsx@@ -65,6 +65,7 @@ const Index: FC<Props> = ({ redDot, userInfo, logOut }) => {variant="success"id="dropdown-basic"as="a"+ role="button"className="no-toggle pointer"><Avatarsize="36px"