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.
ref
1 parent f17e873 commit 2b4b530Copy full SHA for 2b4b530
src/use-dropdown-menu.ts
@@ -7,7 +7,7 @@ interface ButtonProps
7
React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>,
8
'onKeyDown' | 'onClick' | 'tabIndex' | 'role' | 'aria-haspopup' | 'aria-expanded'
9
> {
10
- ref: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
+ ref: React.RefObject<HTMLButtonElement>;
11
}
12
13
// A custom Hook that abstracts away the listeners/controls for dropdown menus
0 commit comments