Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Toolbar] Add Toolbar components #1349

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
Prev Previous commit
Don't set native disabled attr if useButton is a composite item
  • Loading branch information
mj12albert committed Feb 7, 2025
commit 090aee31a12a09a2284464766861c94e6cc677b5
2 changes: 1 addition & 1 deletion packages/react/src/use-button/useButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function useButton(parameters: useButton.Parameters = {}): useButton.Retu
if (elementName === 'BUTTON' || elementName === 'INPUT') {
if (focusableWhenDisabled) {
additionalProps['aria-disabled'] = disabled;
} else {
} else if (!isCompositeItem) {
additionalProps.disabled = disabled;
}
} else if (elementName !== '') {
Expand Down