mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 11:49:19 +00:00
fix: block adding attachment on closed ticket (CTRL + V)
This commit is contained in:
@@ -328,7 +328,9 @@ const MessageInput = ({ ticketStatus }) => {
|
||||
value={inputMessage}
|
||||
onChange={handleChangeInput}
|
||||
disabled={recording || loading || ticketStatus !== "open"}
|
||||
onPaste={handleInputPaste}
|
||||
onPaste={e => {
|
||||
ticketStatus === "open" && handleInputPaste();
|
||||
}}
|
||||
onKeyPress={e => {
|
||||
if (loading || e.shiftKey) return;
|
||||
else if (e.key === "Enter") {
|
||||
|
||||
Reference in New Issue
Block a user