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 b1b9f90 commit 7fb3165Copy full SHA for 7fb3165
packages/react/src/use-button/useButton.ts
@@ -53,7 +53,7 @@ export function useButton(parameters: useButton.Parameters = {}): useButton.Retu
53
if (elementName === 'BUTTON' || elementName === 'INPUT') {
54
if (focusableWhenDisabled) {
55
additionalProps['aria-disabled'] = disabled;
56
- } else {
+ } else if (!isCompositeItem) {
57
additionalProps.disabled = disabled;
58
}
59
} else if (elementName !== '') {
0 commit comments