From 3a31f980adec6efbd2701cb80900af78efe54f2e Mon Sep 17 00:00:00 2001 From: Michel Racic Date: Mon, 9 Jan 2023 23:02:03 +0100 Subject: [PATCH 1/2] Remove OnChange trimming action for password fields (same behaviour as in the form for new user creation) fixing #5638 --- .../components/SettingsSecurityForm/SettingsSecurityForm.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/site/src/components/SettingsSecurityForm/SettingsSecurityForm.tsx b/site/src/components/SettingsSecurityForm/SettingsSecurityForm.tsx index 1b73f0ffe86bf..51eee81d63e56 100644 --- a/site/src/components/SettingsSecurityForm/SettingsSecurityForm.tsx +++ b/site/src/components/SettingsSecurityForm/SettingsSecurityForm.tsx @@ -77,7 +77,6 @@ export const SecurityForm: React.FC = ({ )} = ({ /> = ({ /> Date: Mon, 9 Jan 2023 23:32:35 +0100 Subject: [PATCH 2/2] Remove unused OnChangeTrimmed import --- .../components/SettingsSecurityForm/SettingsSecurityForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/components/SettingsSecurityForm/SettingsSecurityForm.tsx b/site/src/components/SettingsSecurityForm/SettingsSecurityForm.tsx index 51eee81d63e56..57121867026c3 100644 --- a/site/src/components/SettingsSecurityForm/SettingsSecurityForm.tsx +++ b/site/src/components/SettingsSecurityForm/SettingsSecurityForm.tsx @@ -2,7 +2,7 @@ import TextField from "@material-ui/core/TextField" import { FormikContextType, FormikTouched, useFormik } from "formik" import React from "react" import * as Yup from "yup" -import { getFormHelpers, onChangeTrimmed } from "../../util/formUtils" +import { getFormHelpers } from "../../util/formUtils" import { LoadingButton } from "../LoadingButton/LoadingButton" import { Stack } from "../Stack/Stack" import { AlertBanner } from "components/AlertBanner/AlertBanner"