From 3ec8f85746dd25f7359e7819eb9858496cffa08e Mon Sep 17 00:00:00 2001 From: prssanna Date: Thu, 14 May 2020 12:11:20 +0530 Subject: [PATCH] fix: trigger stopped typing on doc close --- frappe/public/js/frappe/socketio_client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frappe/public/js/frappe/socketio_client.js b/frappe/public/js/frappe/socketio_client.js index 52162f31c7..fdc3f8619c 100644 --- a/frappe/public/js/frappe/socketio_client.js +++ b/frappe/public/js/frappe/socketio_client.js @@ -169,6 +169,9 @@ frappe.socketio = { doc_close: function(doctype, docname) { // notify that the user has closed this doc frappe.socketio.socket.emit('doc_close', doctype, docname); + + // if the doc is closed the user has also stopped typing + frappe.socketio.socket.emit('doc_typing_stopped', doctype, docname); }, form_typing: function(doctype, docname) { // notifiy that the user is typing on the doc