From 9ccbbd5e27abd99b09506ff2a54e0d64bb446392 Mon Sep 17 00:00:00 2001 From: Claudemir Todo Bom Date: Thu, 17 Oct 2024 16:10:24 -0300 Subject: [PATCH] clear message input when change current ticket - fix #177 --- frontend/src/components/MessageInputCustom/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/MessageInputCustom/index.js b/frontend/src/components/MessageInputCustom/index.js index 6caefbb..46ae73e 100644 --- a/frontend/src/components/MessageInputCustom/index.js +++ b/frontend/src/components/MessageInputCustom/index.js @@ -497,8 +497,9 @@ const MessageInputCustom = (props) => { setMedias([]); setReplyingMessage(null); setEditingMessage(null); + setInputMessage(""); }; - }, [ticketId, setReplyingMessage, setEditingMessage]); + }, [ticketId]); // const handleChangeInput = e => { // if (isObject(e) && has(e, 'value')) {