feat: Allow to use html form attributes#77
Conversation
diego3g
left a comment
There was a problem hiding this comment.
Is .prettierrc really necessary? I think ESLint or Prettier are not configured the best way inside your editor.
Look that prettier removed , at the end of objects and arrays but it's a rule of AirBnB style guide to keep this.
Also, since #71 we should't need an .prettierrc.
Can you take a look at this? The implementation is ready to merge but we need to keep the style guide.
When I make a commit without |
|
Hi @danilomartinelli could you merge |
Done :) |
Changes proposed
We are not currently able to use some html events such as
onBlur,onFocusand we can't pass props to use custom class and styles. This PR allows to pass HTML Form Attributes as props to Form component.Additional context
I added a type
Omitintypes.tsto excludeonSubmitinFormHTMLAttributesbecause type of property 'onSubmit' is incompatible withonSubmit: (data: object, helpers: Helpers) => void.I needed to create a
.prettierrcfile with singleQuote rule to force use single quote on save.