- Notifications
You must be signed in to change notification settings - Fork48.9k
Restore server controlled form fields to whatever they should be#26708
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
react-sizebot commentedApr 23, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Comparing:36e4cbe...fbcdceb Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
@@ -131,7 +131,6 @@ export function updateInput( | |||
// Submit/reset inputs need the attribute removed completely to avoid | |||
// blank-text buttons. | |||
node.removeAttribute('value'); | |||
return; |
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.
I noticed that this return was problematic because we don't restore thename
after setting it to empty.
Fizz can emit whatever for the SSR version of these fields when it's afunction actual so they might not align with what is in the previous props.Therefore we need to force them to update if we're updating to a non-functionwhere they might be relevant again.
…ebook#26708)Fizz can emit whatever it wants for the SSR version of these fields whenit's a function action so they might not align with what is in theprevious props. Therefore we need to force them to update if we'reupdating to a non-function where they might be relevant again.
)Fizz can emit whatever it wants for the SSR version of these fields whenit's a function action so they might not align with what is in theprevious props. Therefore we need to force them to update if we'reupdating to a non-function where they might be relevant again.DiffTrain build for commit2fa6323.
Fizz can emit whatever it wants for the SSR version of these fields when it's a function action so they might not align with what is in the previous props. Therefore we need to force them to update if we're updating to a non-function where they might be relevant again.