Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix AccessibleButton
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros committed Apr 18, 2024
1 parent 7ac5665 commit 058dcf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/views/elements/AccessibleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,13 @@ const AccessibleButton = forwardRef(function <T extends keyof JSX.IntrinsicEleme
onKeyDown,
onKeyUp,
triggerOnMouseDown,
title,
caption,
...restProps
}: Props<T>,
ref: Ref<HTMLElement>,
): JSX.Element {
const { title } = restProps;

const newProps: RenderedElementProps = restProps;
if (disabled) {
newProps["aria-disabled"] = true;
Expand Down

0 comments on commit 058dcf6

Please sign in to comment.