Skip to content

Commit 2b4b530

Browse files
committed
Define ref more limited
1 parent f17e873 commit 2b4b530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/use-dropdown-menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface ButtonProps
77
React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>,
88
'onKeyDown' | 'onClick' | 'tabIndex' | 'role' | 'aria-haspopup' | 'aria-expanded'
99
> {
10-
ref: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
10+
ref: React.RefObject<HTMLButtonElement>;
1111
}
1212

1313
// A custom Hook that abstracts away the listeners/controls for dropdown menus

0 commit comments

Comments
 (0)