From 16cccc2fccaf3fe81916ec0a8db118d2eb366a9b Mon Sep 17 00:00:00 2001 From: James Morris Date: Thu, 21 Jul 2022 17:48:02 +0100 Subject: [PATCH] Added the reply box disappearing properly with the toggle when finished refs https://github.com/TryGhost/Team/issues/1703 --- apps/comments-ui/src/components/Form.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/comments-ui/src/components/Form.js b/apps/comments-ui/src/components/Form.js index 6b94e45c17..b3d65c263c 100644 --- a/apps/comments-ui/src/components/Form.js +++ b/apps/comments-ui/src/components/Form.js @@ -130,6 +130,9 @@ const Form = (props) => { // Clear message and blur on success editor.chain().clearContent().blur().run(); props.toggle(); + + setFormOpen(false); + props.toggleReplyMode(); } catch (e) { // eslint-disable-next-line no-console console.error(e);