Skip to content

Commit

Permalink
Do not validate form on Blur to avoid double click (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 committed May 19, 2023
1 parent 4392895 commit cdd868d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export const AddRuleLabelTabs: React.FC<AddRuleLabelTabsProps> = ({
validationSchema={RuleLabelServerPathFormSchema()}
onSubmit={handleOnSubmit}
initialErrors={{ name: "" }}
validateOnBlur={false}
>
{({
isValid,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export const EditProject: React.FC<ApplicationListProps> = ({
validationSchema={projectDetailsFormSchema(project)}
onSubmit={handleOnSubmit}
initialErrors={{ name: "" }}
validateOnBlur={false}
>
{({
isValid,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const EditProjectModal: React.FC<EditProjectModalProps> = ({
validationSchema={projectDetailsFormSchema(project)}
onSubmit={handleOnSubmit}
initialErrors={{ name: "" }}
validateOnBlur={false}
>
{({
isValid,
Expand Down

0 comments on commit cdd868d

Please sign in to comment.