We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68e3057 commit 09dc3c0Copy full SHA for 09dc3c0
packages/@react-aria/button/src/useButton.ts
@@ -75,7 +75,7 @@ export function useButton(props: AriaButtonOptions<ElementType>, ref: RefObject<
75
additionalProps = {
76
role: 'button',
77
tabIndex: isDisabled ? undefined : 0,
78
- href: elementType === 'a' && isDisabled ? undefined : href,
+ href: elementType === 'a' && !isDisabled ? href : undefined,
79
target: elementType === 'a' ? target : undefined,
80
type: elementType === 'input' ? type : undefined,
81
disabled: elementType === 'input' ? isDisabled : undefined,
0 commit comments