Skip to content

Commit

Permalink
fix(FormSelect): fix props not being defined (#6106)
Browse files Browse the repository at this point in the history
* change HTMLAttributes to SelectHTMLAttributes

* Omit size from interface since we use string instead of number to fix compile error
  • Loading branch information
lcheunglci committed Oct 29, 2021
1 parent 5cc9481 commit 4dd40db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FormSelect.tsx
Expand Up @@ -8,7 +8,7 @@ import FormContext from './FormContext';

export interface FormSelectProps
extends BsPrefixOnlyProps,
React.HTMLAttributes<HTMLSelectElement> {
Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
htmlSize?: number;
size?: 'sm' | 'lg';
isValid?: boolean;
Expand Down

0 comments on commit 4dd40db

Please sign in to comment.