Просмотр исходного кода

update emailConfirm handle

CR003
Alex Cheung 1 год назад
Родитель
Сommit
a88c79deb8
2 измененных файлов: 13 добавлений и 1 удалений
  1. +7
    -0
      src/pages/authentication/auth-forms/CustomFormWizard.js
  2. +6
    -1
      src/pages/authentication/auth-forms/IAmSmartFormWizard.js

+ 7
- 0
src/pages/authentication/auth-forms/CustomFormWizard.js Просмотреть файл

@@ -700,6 +700,10 @@ const CustomFormWizard = (props) => {
// setSelectedIdDocLabel("")
};

const handleCCPChange = (e) => {
e.preventDefault();
};

const { values } = formik

useEffect(() => {
@@ -1367,6 +1371,9 @@ const CustomFormWizard = (props) => {
onChange={formik.handleChange}
placeholder={intl.formatMessage({ id: 'confirmEmail' })}
onBlur={formik.handleBlur}
onCut={handleCCPChange}
onCopy={handleCCPChange}
onPaste={handleCCPChange}
inputProps={{
onKeyDown: (e) => {
if (e.key === 'Enter') {


+ 6
- 1
src/pages/authentication/auth-forms/IAmSmartFormWizard.js Просмотреть файл

@@ -415,9 +415,11 @@ const CustomFormWizard = (props) => {
}),
});

const handleCCPChange = (e) => {
e.preventDefault();
};

const { values } = formik

useEffect(() => {
checkDataField(values)
}, [values])
@@ -690,6 +692,9 @@ const CustomFormWizard = (props) => {
onChange={formik.handleChange}
placeholder={intl.formatMessage({ id: 'confirmEmail' })}
onBlur={formik.handleBlur}
onCut={handleCCPChange}
onCopy={handleCCPChange}
onPaste={handleCCPChange}
inputProps={{
onKeyDown: (e) => {
if (e.key === 'Enter') {


Загрузка…
Отмена
Сохранить