Browse Source

fix(dropdownButtonV2): Fix forwardRef typing (#35263)

Vu Luong 2 years ago
parent
commit
1be7194e7b
1 changed files with 1 additions and 4 deletions
  1. 1 4
      static/app/components/dropdownButtonV2.tsx

+ 1 - 4
static/app/components/dropdownButtonV2.tsx

@@ -20,10 +20,7 @@ export type DropdownButtonProps = {
   showChevron?: boolean;
 } & Omit<ButtonProps, 'type' | 'prefix'>;
 
-const DropdownButton = forwardRef<
-  React.RefObject<HTMLElement> | null,
-  DropdownButtonProps
->(
+const DropdownButton = forwardRef<HTMLElement, DropdownButtonProps>(
   (
     {
       children,