Browse Source

chore: improve select ref type (#27594)

pull/27596/head
Tom Xu 4 years ago
committed by GitHub
parent
commit
da681fe4dd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/select/index.tsx

2
components/select/index.tsx

@ -145,7 +145,7 @@ const InternalSelect = <VT extends SelectValue = SelectValue>(
};
const SelectRef = React.forwardRef(InternalSelect) as <VT extends SelectValue = SelectValue>(
props: SelectProps<VT> & { ref?: React.Ref<HTMLInputElement> },
props: SelectProps<VT> & { ref?: React.Ref<RefSelectProps> },
) => React.ReactElement;
type InternalSelectType = typeof SelectRef;

Loading…
Cancel
Save