Skip to content

Commit

Permalink
chore(GCOM-1528): apply shrink when form is submitting to handle 'pas…
Browse files Browse the repository at this point in the history
…sword' field reset
  • Loading branch information
carlocarels90 committed Nov 11, 2024
1 parent f2dad96 commit 413bbf2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function SignInForm(props: SignInFormProps) {
helperText={!!formState.errors.password || authError?.message}
// Fixes an issue where the label doesn't shrink as expected when the field is autofilled by the browser.
// Using shrink based on the presence of 'password' forces the label to behave correctly even with autofill.
InputLabelProps={{ shrink: !!watch('password') }}
InputLabelProps={{ shrink: !!watch('password') || formState.isSubmitting }}
InputProps={{
endAdornment: (
<Link href='/account/forgot-password' underline='hover' sx={{ whiteSpace: 'nowrap' }}>
Expand Down

0 comments on commit 413bbf2

Please sign in to comment.