Skip to content

Commit

Permalink
clear message input when change current ticket - fix #177
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Oct 17, 2024
1 parent 121d83f commit 9ccbbd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/MessageInputCustom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 9ccbbd5

Please sign in to comment.