Skip to content

Commit

Permalink
Allow HTMLFormElement attributes to be passed to a Formsy form (#193)
Browse files Browse the repository at this point in the history
* Expand props definition for Formsy form to allow HTMLFormElement attributes.

* Fix linter error.
  • Loading branch information
twisty authored and rkuykendall committed Jul 11, 2019
1 parent fe380d0 commit 081af76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import Wrapper, { propTypes } from './Wrapper';

import { IData, IModel, InputComponent, IResetModel, IUpdateInputsWithError, ValidationFunction } from './interfaces';

type FormHTMLAttributesCleaned = Omit<React.FormHTMLAttributes<HTMLFormElement>, 'onChange' | 'onSubmit'>;

/* eslint-disable react/no-unused-state, react/default-props-match-prop-types */
export interface FormsyProps {
export interface FormsyProps extends FormHTMLAttributesCleaned {
disabled: boolean;
getErrorMessage: any;
getErrorMessages: any;
Expand Down

0 comments on commit 081af76

Please sign in to comment.