Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix setting task description #1227

Merged
merged 1 commit into from
May 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const TaskDescription = ({
})),
mergePayload({ colonyAddress, draftId }),
),
[colonyAddress, draftId],
);
return (
<ActionForm
Expand All @@ -57,7 +58,12 @@ const TaskDescription = ({
name="description"
placeholder={MSG.placeholder}
readOnly={!isTaskCreator}
onEditorBlur={() => submitForm()}
onEditorBlur={() => {
/*
* Defer the form submission to let formik finish first.
*/
setTimeout(submitForm, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kinda hacky, but if it works, it works! 馃し鈥嶁檪 Wonder what they changed to break it...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'm not sure, but I'm not going to put a lot of time into it unless it becomes a bigger thing 馃し鈥嶁檪

}}
/>
)}
</ActionForm>
Expand Down