From 628e00f4016725b3b3b8fba32d4231e33de6fde8 Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Mon, 16 Sep 2019 22:34:32 -0400 Subject: [PATCH] when select dropdown is focused, clear any validation errors --- src/components/join-flow/birthdate-step.jsx | 9 ++++++++- src/components/join-flow/country-step.jsx | 6 +++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/join-flow/birthdate-step.jsx b/src/components/join-flow/birthdate-step.jsx index e22c7f22c..b4a726862 100644 --- a/src/components/join-flow/birthdate-step.jsx +++ b/src/components/join-flow/birthdate-step.jsx @@ -84,7 +84,8 @@ class BirthDateStep extends React.Component { const { errors, handleSubmit, - isSubmitting + isSubmitting, + setFieldError } = props; return ( setFieldError('birth_month', null)} + /* eslint-enable react/jsx-no-bind */ /> setFieldError('birth_year', null)} + /* eslint-enable react/jsx-no-bind */ />
diff --git a/src/components/join-flow/country-step.jsx b/src/components/join-flow/country-step.jsx index fbe53a7c4..ee9854250 100644 --- a/src/components/join-flow/country-step.jsx +++ b/src/components/join-flow/country-step.jsx @@ -64,7 +64,8 @@ class CountryStep extends React.Component { const { errors, handleSubmit, - isSubmitting + isSubmitting, + setFieldError } = props; return ( setFieldError('country', null)} + /* eslint-enable react/jsx-no-bind */ /> {/* note that this is a hidden checkbox the user will never see */}