-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update react-hook-form to 7.6.1 #2270
Conversation
This is awesome @morganmspencer 🚀 Looping in @cannikin for review + direction. |
@morganmspencer - This looks awesome! I suggest including the |
@morganmspencer could you update to the most recent React Hook Form version? pinging @cannikin for review |
@morganmspencer I took a stab at getting this one into upcoming Redwood v0.32 — couldn't quite get it there:
StatusThe tests are now running although I'm seeing a strange error at the beginning regarding:
Hopefully this is enough to get you going again? |
packages/forms/src/index.tsx
Outdated
@@ -268,7 +273,7 @@ const TextAreaField = forwardRef< | |||
<textarea | |||
{...tagProps} | |||
id={props.id || props.name} | |||
ref={(element) => { | |||
{...(element: HTMLTextAreaElement | any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using any
was the only type that didn't give an error. I'm no TS expert so assuming there's a better way to handle this.
Note: multiple occurrences below as well.
…ecifying attributes returned from register function
@thedavidprice it looks like the I could be way off base with this way but 6 out of 12 tests now pass as opposed to the 3 from before. 🤷♂️ Would love any help with fixing the other tests. |
Feeling the pain 😭 --> #2402 |
@cannikin while we're talking about it, what do you think of this one? #1434. If we think it's a good idea, we should probably do it all at the same time. Update: just rediscovered the discussion here, seemed like we were all on board: #1431 (comment) |
Note to self: these enums need to be changed (see the discussion here #2641 (comment)): redwood/packages/forms/src/index.tsx Lines 30 to 52 in e6c941a
|
I just added a change for this |
@morganmspencer awesome thanks! |
@morganmspencer thanks for your willingness and patience with this PR! Assuming we can get someone to help guide you through the next steps, are you still available and interested in continuing with this? |
General Note: |
@thedavidprice I'm definitely still interested in working on this one with a bit of guidance |
@morganmspencer thanks! I've asked @dthyresson to take a look and check back here. Keep a 👀! |
Hi @morganmspencer We are going to close this PR and pick up the work in #3043 Appreciate all your help (and patience) and welcome you to join in on the new PR if you'd like. No pressure! Just know your help is always welcome. |
Started updating react-hook-form to 7.0.7 to close #2253
Disclaimer: first contribution besides minor typo fixes 😂
I believe all necessary files are updated but I'm running into a configuration error with the tests. It appears to be occurring in the jest.config.js file, but I may have done something wrong.
Happy to make any other edits if I missed anything!