From 53885ed40f2a5451454007d6b62ee16a3fc6911f Mon Sep 17 00:00:00 2001 From: Addison-Stavlo Date: Fri, 20 Sep 2024 16:03:25 -0400 Subject: [PATCH] remove input lock and rely on canceling pending change --- .../email-verification-dialog/index.jsx | 4 +- client/me/account/account-email-field.tsx | 123 ++---------------- client/me/security-account-email/index.tsx | 7 +- 3 files changed, 16 insertions(+), 118 deletions(-) diff --git a/client/components/email-verification/email-verification-dialog/index.jsx b/client/components/email-verification/email-verification-dialog/index.jsx index b986046e562cd..f6d3de7b42ae2 100644 --- a/client/components/email-verification/email-verification-dialog/index.jsx +++ b/client/components/email-verification/email-verification-dialog/index.jsx @@ -4,7 +4,6 @@ import { get, includes } from 'lodash'; import PropTypes from 'prop-types'; import { Component } from 'react'; import { connect } from 'react-redux'; -import { emailFormEventEmitter } from 'calypso/me/account/account-email-field'; import { verifyEmail, resetVerifyEmailState, @@ -67,7 +66,7 @@ class VerifyEmailDialog extends Component { if ( this.props.currentRoute !== changeEmailRoute ) { return ; } - // If we are already on /me/account, close the dialog and dispatch a signal to focus the input. + // If we are already on /me/account, close the dialog. return (