Skip to content

Commit

Permalink
fix(types): inherit FormCheckTypes from React.InputHTMLAttributes (#5497
Browse files Browse the repository at this point in the history
)

This should make e.g. `onChange={e => e.target.checked}` work out of the box.
  • Loading branch information
akx committed Oct 30, 2020
1 parent 142a941 commit 4b257b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FormCheck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type FormCheckType = 'checkbox' | 'radio' | 'switch';

export interface FormCheckProps
extends BsPrefixPropsWithChildren,
React.HTMLAttributes<HTMLInputElement> {
React.InputHTMLAttributes<HTMLInputElement> {
bsCustomPrefix?: string;
inline?: boolean;
disabled?: boolean;
Expand Down

0 comments on commit 4b257b6

Please sign in to comment.