Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/lib/src/base-menu/ItemAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import DxcIcon from "../icon/Icon";
import { TooltipWrapper } from "../tooltip/Tooltip";
import { useItemAction } from "./useItemAction";

const Action = styled.button<{
const Action = styled.a<{
depthLevel: ItemActionProps["depthLevel"];
selected: ItemActionProps["selected"];
displayGroupLines: boolean;
Expand Down Expand Up @@ -79,7 +79,7 @@ const Control = styled.span`
`;

const ItemAction = memo(
forwardRef<HTMLButtonElement, ItemActionProps>((props, ref) => {
forwardRef<HTMLAnchorElement, ItemActionProps>((props, ref) => {
const {
hasTooltip,
modifiedBadge,
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/base-menu/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type MenuItemProps = {
item: ItemWithId | GroupItemWithId;
depthLevel?: number;
};
type ItemActionProps = ButtonHTMLAttributes<HTMLButtonElement> & {
type ItemActionProps = ButtonHTMLAttributes<HTMLAnchorElement> & {
badge?: Item["badge"];
collapseIcon?: ReactNode;
depthLevel: number;
Expand Down