fix certificate uploader text field bug
@@ -84,9 +84,9 @@ class CertificateUploadFormRaw extends React.PureComponent<Props, State> {
name="selfManagedCertContent"
margin="normal"
id="certificate-selfManagedCertContent"
- handleChange={(value: string) => {
- setFieldValue("selfManagedCertContent", value);
- const domains = extractDomainsFromCertificateContent(value);
+ handleChange={(event: React.ChangeEvent<HTMLInputElement>) => {
+ setFieldValue("selfManagedCertContent", event.target.value);
+ const domains = extractDomainsFromCertificateContent(event.target.value);
setFieldValue("domains", domains);
}}
multiline={true}
@@ -106,8 +106,8 @@ class CertificateUploadFormRaw extends React.PureComponent<Props, State> {
id="certificate-selfManagedCertPrivateKey"
name="selfManagedCertPrivateKey"
margin="normal"
- handleChange={(value: string) => {
- setFieldValue("selfManagedCertPrivateKey", value);
+ handleChange={(event: React.ChangeEvent<HTMLInputElement>) => {
+ setFieldValue("selfManagedCertPrivateKey", event.target.value);
}}
value={values.selfManagedCertPrivateKey}
/>
