Skip to content

Commit

Permalink
fix: do not always add role button
Browse files Browse the repository at this point in the history
  • Loading branch information
receter committed Sep 26, 2024
1 parent 965c748 commit 2a24e63
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/ui/lib/Button/useBaseButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export function useBaseButton<
return {
buttonProps: {
type: elementType === "button" ? "button" : undefined,
role: elementType !== "button" ? "button" : undefined,
...props,
},
buttonRef: mergeRefs([forwardedRef, ref]),
Expand Down

0 comments on commit 2a24e63

Please sign in to comment.