diff --git a/src/pages/authentication/auth-forms/CustomFormWizard.js b/src/pages/authentication/auth-forms/CustomFormWizard.js index c96c170..a46b0e6 100644 --- a/src/pages/authentication/auth-forms/CustomFormWizard.js +++ b/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') { diff --git a/src/pages/authentication/auth-forms/IAmSmartFormWizard.js b/src/pages/authentication/auth-forms/IAmSmartFormWizard.js index 0a77ef4..272b386 100644 --- a/src/pages/authentication/auth-forms/IAmSmartFormWizard.js +++ b/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') {